Share via


ModelError.ErrorMessage Property

Gets or sets the error message.

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

Syntax

'Declaration
Public Property ErrorMessage As String
    Get
    Private Set
public string ErrorMessage { get; private set; }
public:
property String^ ErrorMessage {
    String^ get ();
    private: void set (String^ value);
}

Property Value

Type: System.String
The error message.

See Also

Reference

ModelError Class

System.Web.Mvc Namespace