ActionFilterAttribute ActionFilterAttribute ActionFilterAttribute Class

Definition

Represents the base class for filter attributes.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public abstract class ActionFilterAttribute : System.Web.Mvc.FilterAttribute, System.Web.Mvc.IActionFilter, System.Web.Mvc.IResultFilter
type ActionFilterAttribute = class
    inherit FilterAttribute
    interface IActionFilter
    interface IResultFilter
Public MustInherit Class ActionFilterAttribute
Inherits FilterAttribute
Implements IActionFilter, IResultFilter
Inheritance
ActionFilterAttributeActionFilterAttributeActionFilterAttribute
Derived
Attributes
Implements

Constructors

ActionFilterAttribute() ActionFilterAttribute() ActionFilterAttribute()

Initializes a new instance of the ActionFilterAttribute class.

Methods

OnActionExecuted(ActionExecutedContext) OnActionExecuted(ActionExecutedContext) OnActionExecuted(ActionExecutedContext)

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

OnActionExecuting(ActionExecutingContext) OnActionExecuting(ActionExecutingContext) OnActionExecuting(ActionExecutingContext)

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

OnResultExecuted(ResultExecutedContext) OnResultExecuted(ResultExecutedContext) OnResultExecuted(ResultExecutedContext)

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

OnResultExecuting(ResultExecutingContext) OnResultExecuting(ResultExecutingContext) OnResultExecuting(ResultExecutingContext)

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

Properties

AllowMultiple AllowMultiple AllowMultiple

Gets or sets a value that indicates whether more than one instance of the filter attribute can be specified.

(Inherited from FilterAttribute)
Order Order Order

Gets or sets the order in which the action filters are executed.

(Inherited from FilterAttribute)

Applies to