DispatcherShutdownMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines constants that specify how an application will shut down.
public enum class DispatcherShutdownMode
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 393216)]
enum class DispatcherShutdownMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 393216)]
public enum DispatcherShutdownMode
Public Enum DispatcherShutdownMode
- Inheritance
-
DispatcherShutdownMode
- Attributes
Fields
Name | Value | Description |
---|---|---|
OnLastWindowClose | 0 | When the last XAML Window object on the thread is closed, the DispatcherQueue.RunEventLoop call or message pump on the thread will exit. (The XAML runtime calls PostQuitMessage.) |
OnExplicitShutdown | 1 | When the last XAML Window object on the thread is closed, the XAML runtime will not take any action to stop the event loop or message pump. (The XAML runtime does not call PostQuitMessage.) |
Remarks
This enum provides values for the Application.DispatcherShutdownMode property.