Table of Contents

Class ActionExecutedContext

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Provides the context for the ActionExecuted method of the ActionFilterAttribute class.

public class ActionExecutedContext : ControllerContext
Inheritance
ActionExecutedContext
Inherited Members

Constructors

ActionExecutedContext()

Initializes a new instance of the ActionExecutedContext class.

public ActionExecutedContext()

ActionExecutedContext(ControllerContext, ActionDescriptor, bool, Exception)

Initializes a new instance of the ActionExecutedContext class.

public ActionExecutedContext(ControllerContext controllerContext, ActionDescriptor actionDescriptor, bool canceled, Exception exception)

Parameters

controllerContext ControllerContext

The controller context.

actionDescriptor ActionDescriptor

The action method descriptor.

canceled bool

true if the action is canceled.

exception Exception

The exception object.

Exceptions

ArgumentNullException

The actionDescriptor parameter is null.

Properties

ActionDescriptor

Gets or sets the action descriptor.

public virtual ActionDescriptor ActionDescriptor { get; set; }

Property Value

ActionDescriptor

The action descriptor.

Canceled

Gets or sets a value that indicates that this ActionExecutedContext object is canceled.

public virtual bool Canceled { get; set; }

Property Value

bool

true if the context canceled; otherwise, false.

Exception

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

public virtual Exception Exception { get; set; }

Property Value

Exception

The exception that occurred during the execution of the action method.

ExceptionHandled

Gets or sets a value that indicates whether the exception is handled.

public bool ExceptionHandled { get; set; }

Property Value

bool

true if the exception is handled; otherwise, false.

Result

Gets or sets the result returned by the action method.

public ActionResult Result { get; set; }

Property Value

ActionResult

The result returned by the action method.