Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ActionFilterAttribute.OnResultExecuting Method (ResultExecutingContext)

 

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

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

public virtual void OnResultExecuting(
	ResultExecutingContext filterContext
)

Parameters

filterContext
Type: System.Web.Mvc.ResultExecutingContext

The filter context.

The OnResultExecuting method is called just before the ActionResult instance that is returned by your action is invoked. The OnResultExecuted method is called just after the result is executed. These methods are useful for performing actions such as logging and output caching.

Return to top
Show:
© 2017 Microsoft