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
ActionFilterAttribute
Derived
Attributes
Implements

Constructors

ActionFilterAttribute()

Initializes a new instance of the ActionFilterAttribute class.

Properties

AllowMultiple

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

(Inherited from FilterAttribute)
Order

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

(Inherited from FilterAttribute)

Methods

OnActionExecuted(ActionExecutedContext)

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

OnActionExecuting(ActionExecutingContext)

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

OnResultExecuted(ResultExecutedContext)

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

OnResultExecuting(ResultExecutingContext)

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

Applies to