UnhandledExceptionEventHandler 代理人

定義

代表處理 My.Application.UnhandledException 事件的方法。

public delegate void UnhandledExceptionEventHandler(System::Object ^ sender, UnhandledExceptionEventArgs ^ e);
public delegate void UnhandledExceptionEventHandler(object sender, UnhandledExceptionEventArgs e);
type UnhandledExceptionEventHandler = delegate of obj * UnhandledExceptionEventArgs -> unit
Public Delegate Sub UnhandledExceptionEventHandler(sender As Object, e As UnhandledExceptionEventArgs)

參數

sender
Object

事件的 來源。

e
UnhandledExceptionEventArgs

一個 UnhandledExceptionEventArgs 包含事件資料的物件。

範例

WindowsFormsApplicationBase.UnhandledException

Visual Basic 應用程式模型概觀

備註

在 Visual Basic 中,你不需要明確使用這個代理。 如需詳細資訊,請參閱UnhandledException

擴充方法

名稱 Description
GetMethodInfo(Delegate)

取得一個代表指定代理所代表方法的物件。

適用於