Freigeben über


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

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

Property Value

Type: System.String
The error message for the validation failure.

See Also

Reference

DataAnnotationsModelValidator Class

System.Web.Mvc Namespace