ExceptionHandler.AsynchronousThreadExceptionHandler Propriedade

Definição

Obtém ou define a implementação ExceptionHandler atual para o domínio do aplicativo.

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>]
member this.AsynchronousThreadExceptionHandler : System.ServiceModel.Dispatcher.ExceptionHandler with get, set
member this.AsynchronousThreadExceptionHandler : System.ServiceModel.Dispatcher.ExceptionHandler with get, set
Public Shared Property AsynchronousThreadExceptionHandler As ExceptionHandler

Valor da propriedade

ExceptionHandler

Atribua um objeto personalizado ExceptionHandler que recebe exceções sem tratamento que ocorrem em threads assíncronos Windows Communication Foundation (WCF).

Atributos

Comentários

Por padrão, a AsynchronousThreadExceptionHandler propriedade é null, e exceções sem tratamento em threads WCF assíncronos encerram o aplicativo. Defina essa propriedade como um ExceptionHandler objeto para receber e reagir a essas exceções.

Se ocorrer uma exceção sem tratamento em um thread WCF assíncrono e atingir esse manipulador, o estado do domínio do aplicativo poderá ser comprometido. HandleException não deve retornar true para essas exceções.

Aplica-se a