ApplicationContext.OnMainFormClosed(Object, EventArgs) ApplicationContext.OnMainFormClosed(Object, EventArgs) ApplicationContext.OnMainFormClosed(Object, EventArgs) ApplicationContext.OnMainFormClosed(Object, EventArgs) Method

定义

调用 ExitThreadCore(),它引发 ThreadExit 事件。Calls ExitThreadCore(), which raises the ThreadExit event.

protected:
 virtual void OnMainFormClosed(System::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 Object Object Object

引发事件的对象。The object that raised the event.

e
EventArgs EventArgs EventArgs EventArgs

包含事件数据的 EventArgsThe EventArgs that contains the event data.

注解

此方法的默认实现将调用ExitThreadCoreThe default implementation of this method calls ExitThreadCore.

适用于