Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
ExtendedExecutionReason Enum
Definition
- Namespace:
- Windows.ApplicationModel.ExtendedExecution
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.
Describes the reason for the background execution request.
public enum class ExtendedExecutionReason
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class ExtendedExecutionReason
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum ExtendedExecutionReason
var value = Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionReason.unspecified
Public Enum ExtendedExecutionReason
- Inheritance
-
ExtendedExecutionReason
- Attributes
Windows requirements
| Requirements | Description |
|---|---|
| Device family |
Windows 10 (introduced in 10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Fields
| Name | Value | Description |
|---|---|---|
| Unspecified | 0 | No reason specified. |
| LocationTracking | 1 | To support location tracking. |
| SavingData | 2 | To save data. |
Remarks
Lifetime data for the various reasons:
| Reason | Extended execution session lifetime |
|---|---|
| LocationTracking | No limit. Only one app at a time may request this reason. |
| SavingData | 10 minutes maximum. |
| Unspecified | 10 minutes maximum on battery power. No limit when the device is connected to power. |
Applies to
Feedback
Was this page helpful?
