11 overrides of FormatErrorMessage
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
ValidationAttributeAdapterOfTAttributeTest.cs (1)
46public override string FormatErrorMessage(string name)
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)
175public 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)
25 references to FormatErrorMessage
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\ParameterBinderTest.cs (2)
119new RequiredAttribute().FormatErrorMessage("My Display Name"), 220Assert.Equal(attribute.FormatErrorMessage(expectedFieldName), error.ErrorMessage);
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
ValidationAttributeUtil.cs (1)
13return attr.FormatErrorMessage(field);
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
ValidationAttributeAdapterOfTAttribute.cs (1)
77return Attribute.FormatErrorMessage(modelMetadata.GetDisplayName());
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (3)
DataAnnotationsModelValidatorTest.cs (2)
180Assert.Equal(attribute.Object.FormatErrorMessage("Length"), validationResult.Message); 235Assert.Equal(new RequiredAttribute().FormatErrorMessage("Length"), validationResult.Message);
ValidationAttributeAdapterOfTAttributeTest.cs (1)
49return base.FormatErrorMessage(name);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Rendering\HtmlHelperHiddenTest.cs (1)
484var requiredMessage = new RequiredAttribute().FormatErrorMessage("Property2");
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)
169/// 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.