ExceptionFilterAttribute ExceptionFilterAttribute ExceptionFilterAttribute Class

Definition

An abstract filter that runs asynchronously after an action has thrown an Exception. Subclasses must override OnException(ExceptionContext) or OnExceptionAsync(ExceptionContext) but not both.

[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
type ExceptionFilterAttribute = class
    inherit Attribute
    interface IAsyncExceptionFilter
    interface IFilterMetadata
    interface IExceptionFilter
    interface IOrderedFilter
Public MustInherit Class ExceptionFilterAttribute
Inherits Attribute
Implements IAsyncExceptionFilter, IExceptionFilter, IOrderedFilter
Inheritance
ExceptionFilterAttributeExceptionFilterAttributeExceptionFilterAttribute
Attributes
Implements

Constructors

ExceptionFilterAttribute() ExceptionFilterAttribute() ExceptionFilterAttribute()

Properties

Order Order Order

Methods

OnException(ExceptionContext) OnException(ExceptionContext) OnException(ExceptionContext)
OnExceptionAsync(ExceptionContext) OnExceptionAsync(ExceptionContext) OnExceptionAsync(ExceptionContext)

Applies to