DispatcherUnhandledExceptionEventHandler Delegate

DispatcherUnhandledExceptionEventHandler Delegate


Represents the method that will handle the UnhandledException event.

Namespace:   System.Windows.Threading
Assembly:  WindowsBase (in WindowsBase.dll)

public delegate void DispatcherUnhandledExceptionEventHandler(
	object sender,
	DispatcherUnhandledExceptionEventArgs e


Type: System.Object

The source of the event.

Type: System.Windows.Threading.DispatcherUnhandledExceptionEventArgs

The event data.

The UnhandledException event occurs when code executing by way of the Dispatcher throws an exception which is not handled.

The UnhandledExceptionFilter event provides a means to not raise the UnhandledException event. The UnhandledExceptionFilter event is raised first, and If RequestCatch on the DispatcherUnhandledExceptionFilterEventArgs is set to false, the UnhandledException event will not be raised.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft