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)

Syntax

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

Parameters

Implements

IResultFilter.OnResultExecuting(ResultExecutingContext)

Remarks

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.

See Also

ActionFilterAttribute Class
System.Web.Mvc Namespace

Return to top