BackgroundEnergyManager.RecentEnergyUsage Property
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.
Gets the energy usage of the app's background task for the current 30 minute period, expressed as a percentage of normal.
public:
static property unsigned int RecentEnergyUsage { unsigned int get(); };
static uint32_t RecentEnergyUsage();
/// [get: Windows.Foundation.Metadata.Deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 393216, "Windows.Foundation.UniversalApiContract")]
static uint32_t RecentEnergyUsage();
public static uint RecentEnergyUsage { get; }
public static uint RecentEnergyUsage { [Windows.Foundation.Metadata.Deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 393216, "Windows.Foundation.UniversalApiContract")] get; }
var uInt32 = BackgroundEnergyManager.recentEnergyUsage;
Public Shared ReadOnly Property RecentEnergyUsage As UInteger
Property Value
The energy usage of the app's background task for the current 30 minute period, expressed as a percentage of normal.
- Attributes
Remarks
The RecentEnergyUsage property is a more accurate measure of energy usage than RecentEnergyUsageLevel. The RecentEnergyUsage value will typically fall between predefined energy levels. The RecentEnergyUsageLevel will always equal the nearest predefined energy level.