Поделиться через


ActionExecutedContext.Exception Property

Gets or sets the exception that occurred during the execution of the action method, if any.

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

Syntax

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

Property Value

Type: System.Exception
The exception that occurred during the execution of the action method.

See Also

Reference

ActionExecutedContext Class

System.Web.Mvc Namespace