ExceptionFilterAttribute Třída

Definice

Abstraktní filtr, který se spouští asynchronně po vyvolání Exceptionakce . Podtřídy musí přepsat OnException(ExceptionContext) nebo OnExceptionAsync(ExceptionContext) ne obojí.

public ref class ExceptionFilterAttribute abstract : Attribute, Microsoft::AspNetCore::Mvc::Filters::IAsyncExceptionFilter, Microsoft::AspNetCore::Mvc::Filters::IExceptionFilter, Microsoft::AspNetCore::Mvc::Filters::IOrderedFilter
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public abstract class ExceptionFilterAttribute : Attribute, Microsoft.AspNetCore.Mvc.Filters.IAsyncExceptionFilter, Microsoft.AspNetCore.Mvc.Filters.IExceptionFilter, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)>]
type ExceptionFilterAttribute = class
    inherit Attribute
    interface IAsyncExceptionFilter
    interface IFilterMetadata
    interface IExceptionFilter
    interface IOrderedFilter
Public MustInherit Class ExceptionFilterAttribute
Inherits Attribute
Implements IAsyncExceptionFilter, IExceptionFilter, IOrderedFilter
Dědičnost
ExceptionFilterAttribute
Atributy
Implementuje

Konstruktory

ExceptionFilterAttribute()

Vlastnosti

Order

Získá hodnotu pořadí pro určení pořadí provádění filtrů. Filtry se spouští ve vzestupné číselné hodnotě Order vlastnosti.

Metody

OnException(ExceptionContext)

Volá se po akci vyvolání Exception.

OnExceptionAsync(ExceptionContext)

Volá se po akci vyvolání Exception.

Platí pro