ServiceExceptionFilterAttribute Klass
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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.ExceptionFilterAttributeServiceExceptionFilterAttribute
- 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
Azure SDK for .NET