Partager via


ExceptionHandler.AsynchronousThreadExceptionHandler Propriété

Définition

Obtient ou définit l'implémentation du ExceptionHandler actuel pour le domaine d'application.

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

Valeur de propriété

ExceptionHandler

Affectez un objet personnalisé ExceptionHandler qui reçoit des exceptions non gérées qui se produisent sur des threads asynchrones Windows Communication Foundation (WCF).

Attributs

Remarques

Par défaut, la AsynchronousThreadExceptionHandler propriété est nullet les exceptions non gérées sur les threads WCF asynchrones terminent l’application. Affectez cette propriété à un objet ExceptionHandler pour recevoir et réagir à ces exceptions.

Si une exception non gérée se produit sur un thread WCF asynchrone et atteint ce gestionnaire, l’état du domaine d’application peut être compromis. HandleException ne doit pas être retourné true pour ces exceptions.

S’applique à