Export (0) Print
Expand All

Controller::OnResultExecuting Method

Called before the action result that is returned by an action method is executed.

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

virtual void OnResultExecuting(
	ResultExecutingContext^ filterContext


Type: System.Web.Mvc::ResultExecutingContext
Information about the current request and action result

If this method is overridden in a derived Controller class, it will be called for every action method in the class. For more flexibility, derive a class from ActionFilterAttribute and override this method in the derived ActionFilterAttribute class.

The following example shows how to trace the current clock ticks before the action result is returned to the response.

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

Community Additions

© 2014 Microsoft