Share via


ExtendedExecutionForegroundReason Enum

Definition

Describes the reason for the extended execution request.

public enum class ExtendedExecutionForegroundReason
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class ExtendedExecutionForegroundReason
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum ExtendedExecutionForegroundReason
var value = Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundReason.unspecified
Public Enum ExtendedExecutionForegroundReason
Inheritance
ExtendedExecutionForegroundReason
Attributes

Windows requirements

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.

SavingData 1

To save data.

BackgroundAudio 2

To play audio.

Unconstrained 3

To perform any task that requires extended execution time.

Applies to