9 overrides of FormatErrorMessage
System.ComponentModel.DataAnnotations (8)
DataAnnotations\CompareAttribute.cs (1)
28public override string FormatErrorMessage(string name) {
DataAnnotations\CustomValidationAttribute.cs (1)
178public override string FormatErrorMessage(string name) {
DataAnnotations\FileExtensionsAttribute.cs (1)
53public override string FormatErrorMessage(string name) {
DataAnnotations\MaxLengthAttribute.cs (1)
82public override string FormatErrorMessage(string name) {
DataAnnotations\MinLengthAttribute.cs (1)
67public override string FormatErrorMessage(string name) {
DataAnnotations\RangeAttribute.cs (1)
129public override string FormatErrorMessage(string name) {
DataAnnotations\RegularExpressionAttribute.cs (1)
85public override string FormatErrorMessage(string name) {
DataAnnotations\StringLengthAttribute.cs (1)
66public override string FormatErrorMessage(string name) {
System.Web (1)
Security\MembershipPasswordAttribute.cs (1)
212public override string FormatErrorMessage(string name) {
19 references to FormatErrorMessage
System.ComponentModel.DataAnnotations (16)
DataAnnotations\CustomValidationAttribute.cs (4)
43/// then the normal <see cref="ValidationAttribute.FormatErrorMessage"/> method will be called to compose the error message. 71/// and <see cref="ValidationAttribute.FormatErrorMessage"/> to return a summary error message. 173/// Override of <see cref="ValidationAttribute.FormatErrorMessage"/> 187return base.FormatErrorMessage(name);
DataAnnotations\MaxLengthAttribute.cs (1)
78/// Applies formatting to a specified error message. (Overrides <see cref = "ValidationAttribute.FormatErrorMessage" />)
DataAnnotations\MinLengthAttribute.cs (1)
63/// Applies formatting to a specified error message. (Overrides <see cref = "ValidationAttribute.FormatErrorMessage" />)
DataAnnotations\RangeAttribute.cs (1)
123/// Override of <see cref="ValidationAttribute.FormatErrorMessage"/>
DataAnnotations\RegularExpressionAttribute.cs (1)
78/// Override of <see cref="ValidationAttribute.FormatErrorMessage"/>
DataAnnotations\RequiredAttribute.cs (1)
14/// <remarks>This constructor selects a reasonable default error message for <see cref="ValidationAttribute.FormatErrorMessage"/></remarks>
DataAnnotations\StringLengthAttribute.cs (1)
61/// Override of <see cref="ValidationAttribute.FormatErrorMessage"/>
DataAnnotations\ValidationAttribute.cs (4)
382result = new ValidationResult(this.FormatErrorMessage(validationContext.DisplayName), memberNames); 422string errorMessage = this.FormatErrorMessage(validationContext.DisplayName); 440/// method will invoke the <see cref="FormatErrorMessage"/> to obtain a localized message describing 450throw new ValidationException(this.FormatErrorMessage(name), this, value);
DataAnnotations\ValidationResult.cs (2)
41/// will use <see cref="ValidationAttribute.FormatErrorMessage"/> for its error message.</param> 51/// will use <see cref="ValidationAttribute.FormatErrorMessage"/> for its error message.</param>
System.Web (2)
ModelBinding\DataAnnotationsModelValidator.cs (2)
28return errorMsg ?? Attribute.FormatErrorMessage(Metadata.GetDisplayName()); 31return Attribute.FormatErrorMessage(Metadata.GetDisplayName());
System.Web.DynamicData (1)
DynamicData\FieldTemplateUserControl.cs (1)
440validator.ErrorMessage = HttpUtility.HtmlEncode(s_defaultRequiredAttribute.FormatErrorMessage(column.DisplayName));