Table of Contents

Class ActionFilterAttribute

Namespace
System.Web.Http.Filters
Assembly
System.Web.Http.dll

Represents the base class for all action-filter attributes.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, Inherited = true, AllowMultiple = true)]
public abstract class ActionFilterAttribute : FilterAttribute, IActionFilter, IFilter
Inheritance
ActionFilterAttribute
Implements
Inherited Members

Constructors

ActionFilterAttribute()

Initializes a new instance of the ActionFilterAttribute class.

protected ActionFilterAttribute()

Methods

OnActionExecuted(HttpActionExecutedContext)

Occurs after the action method is invoked.

public virtual void OnActionExecuted(HttpActionExecutedContext actionExecutedContext)

Parameters

actionExecutedContext HttpActionExecutedContext

The action executed context.

OnActionExecuting(HttpActionContext)

Occurs before the action method is invoked.

public virtual void OnActionExecuting(HttpActionContext actionContext)

Parameters

actionContext HttpActionContext

The action context.