Bewerken

DispatcherUnhandledExceptionEventArgs Class

Definition

Provides data for the DispatcherUnhandledException event.

public ref class DispatcherUnhandledExceptionEventArgs sealed : System::Windows::Threading::DispatcherEventArgs
public sealed class DispatcherUnhandledExceptionEventArgs : System.Windows.Threading.DispatcherEventArgs
type DispatcherUnhandledExceptionEventArgs = class
    inherit DispatcherEventArgs
Public NotInheritable Class DispatcherUnhandledExceptionEventArgs
Inherits DispatcherEventArgs
Inheritance
DispatcherUnhandledExceptionEventArgs

Remarks

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.

Properties

Name Description
Dispatcher

The Dispatcher associated with this event.

(Inherited from DispatcherEventArgs)
Exception

Gets the exception that was raised when executing code by way of the dispatcher.

Handled

Gets or sets whether the exception event has been handled.

Applies to

See also