Partilhar via


ServiceExceptionFilterAttribute Classe

Definição

Fornece uma predefinição System.Web.Http.Filters.ExceptionFilterAttribute que captura exceções não processadas que ocorrem no pipeline de filtro e regista-as.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false)]
public sealed class ServiceExceptionFilterAttribute : System.Web.Http.Filters.ExceptionFilterAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false)>]
type ServiceExceptionFilterAttribute = class
    inherit ExceptionFilterAttribute
Public NotInheritable Class ServiceExceptionFilterAttribute
Inherits ExceptionFilterAttribute
Herança
System.Web.Http.Filters.ExceptionFilterAttribute
ServiceExceptionFilterAttribute
Atributos

Construtores

ServiceExceptionFilterAttribute()

Fornece uma predefinição System.Web.Http.Filters.ExceptionFilterAttribute que captura exceções não processadas que ocorrem no pipeline de filtro e regista-as.

Métodos

OnException(HttpActionExecutedContext)

Regista a exceção não processada com LogCategories o que a faz aparecer no registo de aplicações, a menos que a aplicação tenha sido configurada para não registar tais eventos.

Aplica-se a