WindowsFormsApplicationBase.ShutdownStyle WindowsFormsApplicationBase.ShutdownStyle WindowsFormsApplicationBase.ShutdownStyle WindowsFormsApplicationBase.ShutdownStyle Property

定义

确定应用程序的主窗体关闭时执行的操作。Determines what happens when the application's main form closes.

protected public:
 property Microsoft::VisualBasic::ApplicationServices::ShutdownMode ShutdownStyle { Microsoft::VisualBasic::ApplicationServices::ShutdownMode get(); void set(Microsoft::VisualBasic::ApplicationServices::ShutdownMode value); };
protected internal Microsoft.VisualBasic.ApplicationServices.ShutdownMode ShutdownStyle { get; set; }
member this.ShutdownStyle : Microsoft.VisualBasic.ApplicationServices.ShutdownMode with get, set
Protected Friend Property ShutdownStyle As ShutdownMode

属性值

枚举值之一,它指示应用程序在主窗体关闭时应执行的操作。One of the enumeration values that indicates what the application should do when the main form closes.

注解

OnMainFormClosed方法检查此属性的值,以确定应用程序是否应在主窗体关闭时关闭,或者是否应将其他打开的窗体升级为新的主窗体。The OnMainFormClosed method checks the value of this property to determine if the application should shut down when the main form is closed, or if another open form should be promoted as the new main form.

适用于

另请参阅