ExceptionHandling.RaiseAppDomainUnhandledExceptionEvent(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.