Controller.OnResultExecuting Method (ResultExecutingContext)

 

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)

Syntax

protected virtual void OnResultExecuting(
    ResultExecutingContext filterContext
)
protected:
virtual void OnResultExecuting(
    ResultExecutingContext^ filterContext
)
abstract OnResultExecuting : 
        filterContext:ResultExecutingContext -> unit
override OnResultExecuting : 
        filterContext:ResultExecutingContext -> unit
Protected Overridable Sub OnResultExecuting (
    filterContext As ResultExecutingContext
)

Parameters

Remarks

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.

See Also

Controller Class
System.Web.Mvc Namespace

Return to top