ResultFilterAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An abstract filter that asynchronously surrounds execution of the action result. Subclasses must override OnResultExecuting(ResultExecutingContext), OnResultExecuted(ResultExecutedContext) or OnResultExecutionAsync(ResultExecutingContext, ResultExecutionDelegate) but not OnResultExecutionAsync(ResultExecutingContext, ResultExecutionDelegate) and either of the other two.
public ref class ResultFilterAttribute abstract : Attribute, Microsoft::AspNetCore::Mvc::Filters::IAsyncResultFilter, Microsoft::AspNetCore::Mvc::Filters::IOrderedFilter, Microsoft::AspNetCore::Mvc::Filters::IResultFilter
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public abstract class ResultFilterAttribute : Attribute, Microsoft.AspNetCore.Mvc.Filters.IAsyncResultFilter, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter, Microsoft.AspNetCore.Mvc.Filters.IResultFilter
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)>]
type ResultFilterAttribute = class
inherit Attribute
interface IResultFilter
interface IFilterMetadata
interface IAsyncResultFilter
interface IOrderedFilter
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)>]
type ResultFilterAttribute = class
inherit Attribute
interface IAsyncResultFilter
interface IFilterMetadata
interface IOrderedFilter
interface IResultFilter
Public MustInherit Class ResultFilterAttribute
Inherits Attribute
Implements IAsyncResultFilter, IOrderedFilter, IResultFilter
- Inheritance
-
ResultFilterAttribute
- Derived
- Attributes
- Implements
Constructors
ResultFilterAttribute() |
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
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. |