ExceptionHandling.RaiseAppDomainUnhandledExceptionEvent(Object) Méthode

Définition

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.

S’applique à