OnActionExecuting Method
Collapse the table of content
Expand the table of content

ActionFilterAttribute.OnActionExecuting Method (ActionExecutingContext)


Called by the ASP.NET MVC framework before the action method executes.

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

No code example is currently available or this language may not be supported.


Type: System.Web.Mvc.ActionExecutingContext

The filter context.

The ASP.NET MVC framework will call the OnActionExecuting method of your action filter before it calls the action method that is marked with your action filter attribute. Similarly, the framework will call the OnActionExecuted method after the action method has finished.

Return to top
© 2016 Microsoft