ExceptionFilterAttribute 클래스

정의

작업이 를 throw한 후 비동기적으로 실행되는 추상 필터입니다 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()

작업이 를 throw한 후 비동기적으로 실행되는 추상 필터입니다 Exception. 서브클래스는 둘 OnExceptionAsync(ExceptionContext) 다 재정의해야 하지만 둘 다 재정 OnException(ExceptionContext) 의해야 합니다.

속성

Order

필터 실행 순서를 결정하는 순서 값을 가져옵니다. 필터는 속성의 오름차순 숫자 값으로 Order 실행됩니다.

메서드

OnException(ExceptionContext)

작업이 를 throw한 후 호출됩니다 Exception.

OnExceptionAsync(ExceptionContext)

작업이 를 throw한 후 호출됩니다 Exception.

적용 대상