Udostępnij przez


EnergyUseLevel Enum

Definition

Defines the energy consumption level of a background task.

public enum class EnergyUseLevel
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 983040)]
/// [Windows.Foundation.Metadata.Experimental]
enum class EnergyUseLevel
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 983040)]
enum class EnergyUseLevel
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 983040)]
[Windows.Foundation.Metadata.Experimental]
public enum EnergyUseLevel
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 983040)]
public enum EnergyUseLevel
var value = Windows.ApplicationModel.Background.EnergyUseLevel.unknown
Public Enum EnergyUseLevel
Inheritance
EnergyUseLevel
Attributes

Windows requirements

Requirements Description
Device family
Windows 11 Insider Preview (introduced in 10.0.23504.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v15.0)

Fields

Name Value Description
Unknown 0

The energy consumption level of the background task is unknown.

UnderHalfOfBudget 1

The energy consumption level of the background task is under half of the budget.

OverHalfOfBudget 2

The energy consumption level of the background task is over half of the budget.

OverBudget 3

The energy consumption level of the background task is over the budget.

Applies to