ExceptionFilterAttribute クラス

定義

アクションが をスロー Exceptionした後に非同期的に実行される抽象フィルター。 サブクラスは、 または をOnExceptionAsync(ExceptionContext)オーバーライドする必要がありますが、両方をオーバーライドOnException(ExceptionContext)することはできません。

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
継承
ExceptionFilterAttribute
属性
実装

コンストラクター

ExceptionFilterAttribute()

アクションが をスロー Exceptionした後に非同期的に実行される抽象フィルター。 サブクラスは、 または をOnExceptionAsync(ExceptionContext)オーバーライドする必要がありますが、両方をオーバーライドOnException(ExceptionContext)することはできません。

プロパティ

Order

フィルターの実行順序を決定するための順序値を取得します。 フィルターは、 プロパティの昇順の数値で Order 実行されます。

メソッド

OnException(ExceptionContext)

アクションが をスローした後に呼び出されます Exception

OnExceptionAsync(ExceptionContext)

アクションが をスローした後に呼び出されます Exception

適用対象