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 すべきではありません。

適用対象