13 references to ErrorMessage
System.ComponentModel.DataAnnotations (9)
DataAnnotations\CustomValidationAttribute.cs (2)
42
/// If the method returns a <see cref="ValidationResult"/> with a <c>null</c> <see cref="ValidationResult.
ErrorMessage
"/>
159
this._lastMessage = result.
ErrorMessage
;
DataAnnotations\ValidationAttribute.cs (2)
395
/// <see cref="ValidationResult.
ErrorMessage
"/>.
420
bool hasErrorMessage = (result != null) ? !string.IsNullOrEmpty(result.
ErrorMessage
) : false;
DataAnnotations\ValidationException.cs (1)
53
: this(validationResult.
ErrorMessage
, validatingAttribute, value) {
DataAnnotations\ValidationResult.cs (4)
105
/// the <see cref="
ErrorMessage
"/> if not <c>null</c>, otherwise
109
/// If the <see cref="
ErrorMessage
"/> is empty, it will still qualify
112
/// <returns>The <see cref="
ErrorMessage
"/> property value if specified,
115
return this.
ErrorMessage
?? base.ToString();
System.Web (4)
ModelBinding\DataAnnotationsModelValidator.cs (2)
107
errorMsg = errorMsg ?? result.
ErrorMessage
;
110
errorMsg = result.
ErrorMessage
;
ModelBinding\ValidatableObjectAdapter.cs (2)
42
yield return new ModelValidationResult { Message = result.
ErrorMessage
};
46
yield return new ModelValidationResult { Message = result.
ErrorMessage
, MemberName = memberName };