ExceptionHandler.AsynchronousThreadExceptionHandler Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient ou définit l’implémentation actuelle ExceptionHandler 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>]
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
Valeur de propriété
Affectez un objet personnalisé ExceptionHandler qui reçoit des exceptions non gérées qui se produisent sur des threads Windows Communication Foundation (WCF) asynchrones.
- 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. Définissez cette propriété sur un ExceptionHandler objet 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 retourner true pour ces exceptions.