次の方法で共有


ServiceExceptionFilterAttribute クラス

定義

フィルター パイプラインで発生する未処理の例外をキャッチし、ログに記録する既定 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.ExceptionFilterAttribute
ServiceExceptionFilterAttribute
属性

コンストラクター

ServiceExceptionFilterAttribute()

フィルター パイプラインで発生する未処理の例外をキャッチし、ログに記録する既定 System.Web.Http.Filters.ExceptionFilterAttribute のを提供します。

メソッド

OnException(HttpActionExecutedContext)

を使用してハンドルされない例外を LogCategories ログに記録します。これにより、そのようなイベントをログに記録しないようにアプリケーションが構成されていない限り、アプリケーション ログに表示されます。

適用対象