AppWindowClosedReason 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 a window close operation was initiated.
public enum class AppWindowClosedReason
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 524288)]
enum class AppWindowClosedReason
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 524288)]
public enum AppWindowClosedReason
Public Enum AppWindowClosedReason
- Inheritance
-
AppWindowClosedReason
- Attributes
Windows requirements
Device family |
Windows 10, version 1903 (introduced in 10.0.18362.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v8.0)
|
Fields
Name | Value | Description |
---|---|---|
Other | 0 | The operation was initiated by something other than the user or app code. |
AppInitiated | 1 | The operation was initiated programmatically by code in the app. |
UserInitiated | 2 | The operation was initiated by the user. |
Remarks
This enumeration provides values for the AppWindowClosedEventArgs.Reason property.