8 references to GetDisplayName
System.Web (8)
ModelBinding\DataAnnotationsModelValidator.cs (4)
28
return errorMsg ?? Attribute.FormatErrorMessage(Metadata.
GetDisplayName
());
31
return Attribute.FormatErrorMessage(Metadata.
GetDisplayName
());
75
context.DisplayName = Metadata.
GetDisplayName
();
98
return GetLocalizedString(errorMessage, Metadata.
GetDisplayName
());
ModelBinding\ModelBinderErrorMessageProviders.cs (1)
44
string displayName = modelMetadata.
GetDisplayName
();
ModelBinding\RangeAttributeAdapter.cs (1)
10
return GetLocalizedString(errorMessage, Metadata.
GetDisplayName
(), Attribute.Minimum, Attribute.Maximum);
ModelBinding\RegularExpressionAttributeAdapter.cs (1)
10
return GetLocalizedString(errorMessage, Metadata.
GetDisplayName
(), Attribute.Pattern);
ModelBinding\StringLengthAttributeAdapter.cs (1)
10
return GetLocalizedString(errorMessage, Metadata.
GetDisplayName
(), Attribute.MinimumLength, Attribute.MaximumLength);