DispatcherUnhandledExceptionEventHandler Delegate

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
)

Parameters

sender
Type: System::Object^

The source of the event.

e
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
Show: