ShutdownMode 枚举

定义

指定应用程序将如何关闭。 ShutdownMode 属性使用。Used by the ShutdownMode property.

public enum class ShutdownMode
public enum ShutdownMode
type ShutdownMode = 
Public Enum ShutdownMode
继承
ShutdownMode

字段

OnExplicitShutdown 2

只有在调用 Shutdown() 时,应用程序才会关闭。An application shuts down only when Shutdown() is called.

OnLastWindowClose 0

当上一个窗口关闭或在调用 Shutdown() 时,应用程序将关闭。An application shuts down when either the last window closes, or Shutdown() is called.

OnMainWindowClose 1

当主窗口关闭或在调用 Shutdown() 时,应用程序将关闭。An application shuts down when either the main window closes, or Shutdown() is called.

适用于