语言

DispatcherUnhandledExceptionFilterEventArgs 类

定义

提供事件的数据 DispatcherUnhandledExceptionFilter 。

public ref class DispatcherUnhandledExceptionFilterEventArgs sealed : System::Windows::Threading::DispatcherEventArgs
public sealed class DispatcherUnhandledExceptionFilterEventArgs : System.Windows.Threading.DispatcherEventArgs
type DispatcherUnhandledExceptionFilterEventArgs = class
    inherit DispatcherEventArgs
Public NotInheritable Class DispatcherUnhandledExceptionFilterEventArgs
Inherits DispatcherEventArgs
继承
DispatcherUnhandledExceptionFilterEventArgs

注解

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

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

属性

名称 说明
Dispatcher

与此 Dispatcher 事件关联的事件。

(继承自 DispatcherEventArgs)
Exception

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

RequestCatch

获取或设置是否应捕获异常和调用事件处理程序。

方法

名称 说明
Equals(Object)

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

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type。

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ToString()

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

(继承自 Object)

适用于

另请参阅