10 overrides of FormatErrorMessage
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
RemoteAttributeBase.cs (1)
117public override string FormatErrorMessage(string name)
System.ComponentModel.Annotations (9)
System\ComponentModel\DataAnnotations\CompareAttribute.cs (1)
28public override string FormatErrorMessage(string name) =>
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (1)
193public override string FormatErrorMessage(string name)
System\ComponentModel\DataAnnotations\FileExtensionsAttribute.cs (1)
42public override string FormatErrorMessage(string name) =>
System\ComponentModel\DataAnnotations\LengthAttribute.cs (1)
78public override string FormatErrorMessage(string name) =>
System\ComponentModel\DataAnnotations\MaxLengthAttribute.cs (1)
95public override string FormatErrorMessage(string name) =>
System\ComponentModel\DataAnnotations\MinLengthAttribute.cs (1)
78public override string FormatErrorMessage(string name) =>
System\ComponentModel\DataAnnotations\RangeAttribute.cs (1)
179public override string FormatErrorMessage(string name)
System\ComponentModel\DataAnnotations\RegularExpressionAttribute.cs (1)
87public override string FormatErrorMessage(string name)
System\ComponentModel\DataAnnotations\StringLengthAttribute.cs (1)
67public override string FormatErrorMessage(string name)
26 references to FormatErrorMessage
Microsoft.AspNetCore.Components.Forms (2)
ClientValidation\DefaultClientValidationService.cs (2)
241return attribute.FormatErrorMessage(displayName); 250}) ?? attribute.FormatErrorMessage(displayName);
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
ValidationAttributeAdapterOfTAttribute.cs (1)
77return Attribute.FormatErrorMessage(modelMetadata.GetDisplayName());
Microsoft.Extensions.Compliance.Redaction (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
175return new ValidationResult(FormatErrorMessage(validationContext.GetDisplayName()), validationContext.GetMemberName());
Microsoft.Extensions.Diagnostics.Probes (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
175return new ValidationResult(FormatErrorMessage(validationContext.GetDisplayName()), validationContext.GetMemberName());
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
175return new ValidationResult(FormatErrorMessage(validationContext.GetDisplayName()), validationContext.GetMemberName());
Microsoft.Extensions.Http.Resilience (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
175return new ValidationResult(FormatErrorMessage(validationContext.GetDisplayName()), validationContext.GetMemberName());
Microsoft.Extensions.Telemetry (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
175return new ValidationResult(FormatErrorMessage(validationContext.GetDisplayName()), validationContext.GetMemberName());
Shared (1)
Data.Validation\LengthAttribute.cs (1)
175return new ValidationResult(FormatErrorMessage(validationContext.GetDisplayName()), validationContext.GetMemberName());
System.ComponentModel.Annotations (17)
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (4)
51/// then the normal <see cref="ValidationAttribute.FormatErrorMessage" /> method will be called to compose the 80/// and <see cref="ValidationAttribute.FormatErrorMessage" /> to return a summary error message. 188/// Override of <see cref="ValidationAttribute.FormatErrorMessage" /> 204return base.FormatErrorMessage(name);
System\ComponentModel\DataAnnotations\LengthAttribute.cs (1)
74/// Applies formatting to a specified error message. (Overrides <see cref="ValidationAttribute.FormatErrorMessage" />)
System\ComponentModel\DataAnnotations\MaxLengthAttribute.cs (1)
91/// Applies formatting to a specified error message. (Overrides <see cref="ValidationAttribute.FormatErrorMessage" />)
System\ComponentModel\DataAnnotations\MinLengthAttribute.cs (1)
74/// Applies formatting to a specified error message. (Overrides <see cref="ValidationAttribute.FormatErrorMessage" />)
System\ComponentModel\DataAnnotations\RangeAttribute.cs (1)
173/// Override of <see cref="ValidationAttribute.FormatErrorMessage" />
System\ComponentModel\DataAnnotations\RegularExpressionAttribute.cs (1)
80/// Override of <see cref="ValidationAttribute.FormatErrorMessage" />
System\ComponentModel\DataAnnotations\RequiredAttribute.cs (1)
18/// <see cref="ValidationAttribute.FormatErrorMessage" />
System\ComponentModel\DataAnnotations\StringLengthAttribute.cs (1)
62/// Override of <see cref="ValidationAttribute.FormatErrorMessage" />
System\ComponentModel\DataAnnotations\ValidationAttribute.cs (4)
304return new ValidationResult(FormatErrorMessage(validationContext.DisplayName), memberNames); 441var errorMessage = FormatErrorMessage(validationContext.DisplayName); 459/// method will invoke the <see cref="FormatErrorMessage" /> to obtain a localized message describing 472throw new ValidationException(FormatErrorMessage(name), this, value);
System\ComponentModel\DataAnnotations\ValidationResult.cs (2)
38/// will use <see cref="ValidationAttribute.FormatErrorMessage" /> for its error message. 51/// will use <see cref="ValidationAttribute.FormatErrorMessage" /> for its error message.