Dela via


ServiceExceptionFilterAttribute Klass

Definition

Tillhandahåller ett standardvärde System.Web.Http.Filters.ExceptionFilterAttribute som fångar upp ohanterade undantag som inträffar i filterpipelinen och loggar dem.

[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
Arv
System.Web.Http.Filters.ExceptionFilterAttribute
ServiceExceptionFilterAttribute
Attribut

Konstruktorer

ServiceExceptionFilterAttribute()

Tillhandahåller ett standardvärde System.Web.Http.Filters.ExceptionFilterAttribute som fångar upp ohanterade undantag som inträffar i filterpipelinen och loggar dem.

Metoder

OnException(HttpActionExecutedContext)

Loggar det ohanterade undantaget med LogCategories vilket gör att det visas i programloggen om inte programmet har konfigurerats för att inte logga sådana händelser.

Gäller för