語言

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則事件不會被提出。

屬性

名稱 Description
Dispatcher

Dispatcher與此事件相關。

(繼承來源 DispatcherEventArgs)
Exception

會觸發執行程式碼時透過調度器提出的例外。

RequestCatch

取得或設定是否應攔截該例外並呼叫事件處理程序。

方法

名稱 Description
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type。

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於

另請參閱