9 overrides of FormatErrorMessage
System.ComponentModel.DataAnnotations (8)
DataAnnotations\CompareAttribute.cs (1)
28
public override string
FormatErrorMessage
(string name) {
DataAnnotations\CustomValidationAttribute.cs (1)
178
public override string
FormatErrorMessage
(string name) {
DataAnnotations\FileExtensionsAttribute.cs (1)
53
public override string
FormatErrorMessage
(string name) {
DataAnnotations\MaxLengthAttribute.cs (1)
82
public override string
FormatErrorMessage
(string name) {
DataAnnotations\MinLengthAttribute.cs (1)
67
public override string
FormatErrorMessage
(string name) {
DataAnnotations\RangeAttribute.cs (1)
129
public override string
FormatErrorMessage
(string name) {
DataAnnotations\RegularExpressionAttribute.cs (1)
85
public override string
FormatErrorMessage
(string name) {
DataAnnotations\StringLengthAttribute.cs (1)
66
public override string
FormatErrorMessage
(string name) {
System.Web (1)
Security\MembershipPasswordAttribute.cs (1)
212
public 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
"/>
187
return 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)
382
result = new ValidationResult(this.
FormatErrorMessage
(validationContext.DisplayName), memberNames);
422
string errorMessage = this.
FormatErrorMessage
(validationContext.DisplayName);
440
/// method will invoke the <see cref="
FormatErrorMessage
"/> to obtain a localized message describing
450
throw 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)
28
return errorMsg ?? Attribute.
FormatErrorMessage
(Metadata.GetDisplayName());
31
return Attribute.
FormatErrorMessage
(Metadata.GetDisplayName());
System.Web.DynamicData (1)
DynamicData\FieldTemplateUserControl.cs (1)
440
validator.ErrorMessage = HttpUtility.HtmlEncode(s_defaultRequiredAttribute.
FormatErrorMessage
(column.DisplayName));