Share via


DataAnnotationsModelValidator.ErrorMessage Property

 

Gets the error message for the validation failure.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

protected internal string ErrorMessage { get; }
public protected:
property String^ ErrorMessage {
    String^ get();
}
member ErrorMessage : string with get
Protected Friend ReadOnly Property ErrorMessage As String

Property Value

Type: System.String

The error message for the validation failure.

See Also

DataAnnotationsModelValidator Class
System.Web.Mvc Namespace

Return to top