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"/> 159this._lastMessage = result.ErrorMessage;
DataAnnotations\ValidationAttribute.cs (2)
395/// <see cref="ValidationResult.ErrorMessage"/>. 420bool 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, 115return this.ErrorMessage ?? base.ToString();
System.Web (4)
ModelBinding\DataAnnotationsModelValidator.cs (2)
107errorMsg = errorMsg ?? result.ErrorMessage; 110errorMsg = result.ErrorMessage;
ModelBinding\ValidatableObjectAdapter.cs (2)
42yield return new ModelValidationResult { Message = result.ErrorMessage }; 46yield return new ModelValidationResult { Message = result.ErrorMessage, MemberName = memberName };