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

擴充方法

GetMethodInfo(Delegate)

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

適用於