ExceptionHandling.RaiseAppDomainUnhandledExceptionEvent(Object) Méthode
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.
Déclenche l’événement UnhandledException.
public:
static void RaiseAppDomainUnhandledExceptionEvent(System::Object ^ exception);
public static void RaiseAppDomainUnhandledExceptionEvent(object exception);
static member RaiseAppDomainUnhandledExceptionEvent : obj -> unit
Public Shared Sub RaiseAppDomainUnhandledExceptionEvent (exception As Object)
Paramètres
- exception
- Object
Exception à passer aux gestionnaires d’événements.
Remarques
Cette méthode déclenche l’événement UnhandledException , puis retourne.
Il ne déclenche pas le gestionnaire inscrit auprès SetUnhandledExceptionHandler(Func<Exception,Boolean>)de .
Cette API est thread safe et peut être appelée à partir de plusieurs threads. Toutefois, un seul thread déclenche les gestionnaires d’événements, tandis que d’autres threads attendent indéfiniment sans déclencher l’événement.