Edit

Share via


ExceptionHandling.RaiseAppDomainUnhandledExceptionEvent(Object) Method

Definition

Raises the UnhandledException event.

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)

Parameters

exception
Object

The exception to pass to event handlers.

Remarks

This method will raise the UnhandledException event and then return.

It will not raise the the handler registered with SetUnhandledExceptionHandler(Func<Exception,Boolean>).

This API is thread safe and can be called from multiple threads. However, only one thread will trigger the event handlers, while other threads will wait indefinitely without raising the event.

Applies to