ResultFilterAttribute Klasa

Definicja

Abstrakcyjny filtr, który asynchronicznie otacza wykonywanie wyniku akcji. Podklasy muszą przesłonić OnResultExecuting(ResultExecutingContext)elementy , OnResultExecuted(ResultExecutedContext) lub OnResultExecutionAsync(ResultExecutingContext, ResultExecutionDelegate) , ale nie OnResultExecutionAsync(ResultExecutingContext, ResultExecutionDelegate) i albo z dwóch pozostałych.

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
Dziedziczenie
ResultFilterAttribute
Pochodne
Atrybuty
Implementuje

Konstruktory

ResultFilterAttribute()

Abstrakcyjny filtr, który asynchronicznie otacza wykonywanie wyniku akcji. Podklasy muszą przesłonić OnResultExecuting(ResultExecutingContext)elementy , OnResultExecuted(ResultExecutedContext) lub OnResultExecutionAsync(ResultExecutingContext, ResultExecutionDelegate) , ale nie OnResultExecutionAsync(ResultExecutingContext, ResultExecutionDelegate) i albo z dwóch pozostałych.

Właściwości

Order

Pobiera wartość kolejności określania kolejności wykonywania filtrów. Filtry są wykonywane w rosnącej wartości liczbowej Order właściwości.

Metody

OnResultExecuted(ResultExecutedContext)

Wywołana po wykonaniu wyniku akcji.

OnResultExecuting(ResultExecutingContext)

Wywołana przed wykonaniem wyniku akcji.

OnResultExecutionAsync(ResultExecutingContext, ResultExecutionDelegate)

Wywoływana asynchronicznie przed wynikiem akcji.

Dotyczy