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 設定為 falseUnhandledException 則不會引發事件。

屬性

Dispatcher

與這個事件關聯的 Dispatcher

(繼承來源 DispatcherEventArgs)
Exception

取得使用發送器執行程式碼時引發的例外狀況。

Handled

取得或設定值,這個值表示是否已處理例外狀況事件。

方法

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於

另請參閱