语言

DispatcherUnhandledExceptionEventArgs 类

定义

提供事件的数据 DispatcherUnhandledException 。

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
继承
DispatcherUnhandledExceptionEventArgs

注解

当 UnhandledException 代码通过 Dispatcher 引发未处理的异常时发生该事件。

该 UnhandledExceptionFilter 事件提供了一种不引发 UnhandledException 事件的方法。 首先UnhandledExceptionFilter引发该事件,如果RequestCatch设置为DispatcherUnhandledExceptionFilterEventArgs该false事件,UnhandledException则不会引发该事件。

属性

名称 说明
Dispatcher

与此 Dispatcher 事件关联的事件。

(继承自 DispatcherEventArgs)
Exception

获取通过调度程序执行代码时引发的异常。

Handled

获取或设置是否已处理异常事件。

方法

名称 说明
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type。

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

适用于

另请参阅