ResultFilterAttribute Class

Definition

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
type ResultFilterAttribute = class
    inherit Attribute
    interface IResultFilter
    interface IFilterMetadata
    interface IAsyncResultFilter
    interface IOrderedFilter
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

Methods

OnResultExecuted(ResultExecutedContext)
OnResultExecuting(ResultExecutingContext)
OnResultExecutionAsync(ResultExecutingContext, ResultExecutionDelegate)

Applies to