BackgroundEnergyManager.RecentEnergyUsage 属性

定义

获取当前 30 分钟期间应用后台任务的能量使用情况,以正常百分比表示。

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

属性值

UInt32

unsigned int

uint32_t

当前 30 分钟时段内应用后台任务的能耗,以正常百分比表示。

属性

注解

RecentEnergyUsage 属性比 RecentEnergyUsageLevel 更准确地衡量能量使用情况。 RecentEnergyUsage 值通常介于预定义能量水平之间。 RecentEnergyUsageLevel 将始终等于最接近的预定义能量水平。

适用于