ExceptionHandler.AsynchronousThreadExceptionHandler Propiedad

Definición

Obtiene o establece la implementación actual ExceptionHandler para el dominio de aplicación.

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

Valor de propiedad

Asigne un objeto personalizado ExceptionHandler que reciba excepciones no controladas que se producen en subprocesos asincrónicos de Windows Communication Foundation (WCF).

Atributos

Comentarios

De forma predeterminada, la AsynchronousThreadExceptionHandler propiedad es nully las excepciones no controladas en subprocesos WCF asincrónicos finalizan la aplicación. Establezca esta propiedad en un ExceptionHandler objeto para recibir y reaccionar a estas excepciones.

Si se produce una excepción no controlada en un subproceso WCF asincrónico y llega a este controlador, el estado del dominio de aplicación puede estar en peligro. HandleException no debe devolver true para estas excepciones.

Se aplica a