ShutdownEventHandler 代理人

定義

表示處理 My.Application.Shutdown 事件的方法。

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

參數

sender
Object

事件的來源。

e
EventArgs

包含事件資料的 EventArgs 物件。

範例

WindowsFormsApplicationBase.Shutdown

Visual Basic 應用程式模型概觀

備註

在 Visual Basic 中,您不需要明確使用此委派。 如需詳細資訊,請參閱Shutdown

擴充方法

GetMethodInfo(Delegate)

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

適用於