ExceptionHandler.AsynchronousThreadExceptionHandler プロパティ

定義

アプリケーション ドメインの現在の ExceptionHandler 実装を取得または設定します。

public:
 static property System::ServiceModel::Dispatcher::ExceptionHandler ^ AsynchronousThreadExceptionHandler { System::ServiceModel::Dispatcher::ExceptionHandler ^ get(); void set(System::ServiceModel::Dispatcher::ExceptionHandler ^ value); };
public static System.ServiceModel.Dispatcher.ExceptionHandler AsynchronousThreadExceptionHandler { [System.Security.SecurityCritical] [System.Security.SecurityTreatAsSafe] get; [System.Security.SecurityCritical] [System.Security.SecurityTreatAsSafe] set; }
public static System.ServiceModel.Dispatcher.ExceptionHandler AsynchronousThreadExceptionHandler { get; set; }
[<get: System.Security.SecurityCritical>]
[<get: System.Security.SecurityTreatAsSafe>]
[<set: System.Security.SecurityCritical>]
[<set: System.Security.SecurityTreatAsSafe>]
static member AsynchronousThreadExceptionHandler : System.ServiceModel.Dispatcher.ExceptionHandler with get, set
static member AsynchronousThreadExceptionHandler : System.ServiceModel.Dispatcher.ExceptionHandler with get, set
Public Shared Property AsynchronousThreadExceptionHandler As ExceptionHandler

プロパティ値

非同期 Windows Communication Foundation (WCF) スレッドで発生するハンドルされない例外を受け取るカスタム ExceptionHandler オブジェクトを割り当てます。

属性

注釈

既定では、 AsynchronousThreadExceptionHandler プロパティは nullされ、非同期 WCF スレッドのハンドルされない例外によってアプリケーションが終了します。 これらの例外を受け取って対応するには、このプロパティを ExceptionHandler オブジェクトに設定します。

非同期 WCF スレッドでハンドルされない例外が発生し、このハンドラーに到達すると、アプリケーション ドメインの状態が侵害される可能性があります。 HandleException は、これらの例外の true を返すべきではありません。

適用対象