Table of Contents

Class ActionExecutingContext

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

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

public class ActionExecutingContext : ControllerContext
Inheritance
ActionExecutingContext
Inherited Members

Constructors

ActionExecutingContext()

Initializes a new instance of the ActionExecutingContext class.

public ActionExecutingContext()

ActionExecutingContext(ControllerContext, ActionDescriptor, IDictionary<string, object>)

Initializes a new instance of the ActionExecutingContext class by using the specified controller context, action descriptor, and action-method parameters.

public ActionExecutingContext(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary<string, object> actionParameters)

Parameters

controllerContext ControllerContext

The controller context.

actionDescriptor ActionDescriptor

The action descriptor.

actionParameters IDictionary<string, object>

The action-method parameters.

Exceptions

ArgumentNullException

The ActionParameters or actionDescriptor parameter is null.

Properties

ActionDescriptor

Gets or sets the action descriptor.

public virtual ActionDescriptor ActionDescriptor { get; set; }

Property Value

ActionDescriptor

The action descriptor.

ActionParameters

Gets or sets the action-method parameters.

public virtual IDictionary<string, object> ActionParameters { get; set; }

Property Value

IDictionary<string, object>

The action-method parameters.

Result

Gets or sets the result that is returned by the action method.

public ActionResult Result { get; set; }

Property Value

ActionResult

The result that is returned by the action method.