共用方式為


ApplicationContext.OnMainFormClosed(Object, EventArgs) 方法

定義

呼叫會引發 ExitThreadCore() 事件的 ThreadExit

protected:
 virtual void OnMainFormClosed(System::Object ^ sender, EventArgs ^ e);
protected virtual void OnMainFormClosed (object sender, EventArgs e);
protected virtual void OnMainFormClosed (object? sender, EventArgs e);
abstract member OnMainFormClosed : obj * EventArgs -> unit
override this.OnMainFormClosed : obj * EventArgs -> unit
Protected Overridable Sub OnMainFormClosed (sender As Object, e As EventArgs)

參數

sender
Object

引發事件的物件。

e
EventArgs

包含事件資料的 EventArgs

備註

這個方法的預設實作會呼叫 ExitThreadCore

適用於