ActionFilterAttribute Class

Definition

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public abstract class ActionFilterAttribute : Attribute, Microsoft.AspNetCore.Mvc.Filters.IActionFilter, Microsoft.AspNetCore.Mvc.Filters.IAsyncActionFilter, Microsoft.AspNetCore.Mvc.Filters.IAsyncResultFilter, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter, Microsoft.AspNetCore.Mvc.Filters.IResultFilter
Inheritance
ActionFilterAttribute
Attributes
Implements

Constructors

Properties

Order

Gets the order value for determining the order of execution of filters. Filters execute in ascending numeric value of the Order property.

Methods

OnActionExecuted(ActionExecutedContext)

Called after the action executes, before the action result.

OnActionExecuting(ActionExecutingContext)

Called before the action executes, after model binding is complete.

OnActionExecutionAsync(ActionExecutingContext, ActionExecutionDelegate)

Called asynchronously before the action, after model binding is complete.

OnResultExecuted(ResultExecutedContext)

Called after the action result executes.

OnResultExecuting(ResultExecutingContext)

Called before the action result executes.

OnResultExecutionAsync(ResultExecutingContext, ResultExecutionDelegate)

Called asynchronously before the action result.

Applies to