9 references to ErrorMessage
System.ComponentModel.DataAnnotations (6)
DataAnnotations\ValidationAttribute.cs (6)
14/// a localized error message, but they cannot be set if <see cref="ErrorMessage"/> is also used to provide a non-localized 67/// This message will be used if the user has not set <see cref="ErrorMessage"/> 92/// Gets the localized error message string, coming either from <see cref="ErrorMessage"/>, or from evaluating the 159/// that will provide a localized error message. Use <see cref="ErrorMessage"/> for non-localized error messages. 178/// <para>Use <see cref="ErrorMessage"/> instead of this pair if error messages are not localized. 203string localErrorMessage = this.ErrorMessage;
System.Web (3)
ModelBinding\DataAnnotationsModelValidator.cs (3)
26var errorMsg = GetLocalizedString(Attribute.ErrorMessage); 105errorMsg = GetLocalizedErrorMessage(Attribute.ErrorMessage); 141return (!string.IsNullOrEmpty(Attribute.ErrorMessage) &&