DispatcherUnhandledExceptionEventHandler 代理人

定義

表示處理 UnhandledException 事件的方法。

C#
public delegate void DispatcherUnhandledExceptionEventHandler(object sender, DispatcherUnhandledExceptionEventArgs e);

參數

sender
Object

事件的來源。

備註

UnhandledException 程式碼透過 Dispatcher 擲回未處理的例外狀況時,就會發生此事件。

事件 UnhandledExceptionFilter 提供一種方法來不引發 UnhandledException 事件。 事件 UnhandledExceptionFilter 會先引發,如果 RequestCatch 上的 DispatcherUnhandledExceptionFilterEventArgs 設定為 falseUnhandledException 則不會引發事件。

擴充方法

GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。

適用於

產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

另請參閱