Partager via


ModelError.Exception Property

Gets or sets the exception object.

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

Syntax

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

Property Value

Type: System.Exception
The exception object.

See Also

Reference

ModelError Class

System.Web.Mvc Namespace