ServiceExceptionFilterAttribute クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
フィルター パイプラインで発生する未処理の例外をキャッチし、ログに記録する既定 System.Web.Http.Filters.ExceptionFilterAttribute のを提供します。
[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
- 継承
-
System.Web.Http.Filters.ExceptionFilterAttributeServiceExceptionFilterAttribute
- 属性
コンストラクター
ServiceExceptionFilterAttribute() |
フィルター パイプラインで発生する未処理の例外をキャッチし、ログに記録する既定 System.Web.Http.Filters.ExceptionFilterAttribute のを提供します。 |
メソッド
OnException(HttpActionExecutedContext) |
を使用してハンドルされない例外を LogCategories ログに記録します。これにより、そのようなイベントをログに記録しないようにアプリケーションが構成されていない限り、アプリケーション ログに表示されます。 |
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for .NET