ForegroundEnergyManager.RecentEnergyUsageLevel 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 nearest predefined energy level of the foreground app for the current 30 minute period, equal to LowUsageLevel, NearMaxAcceptableUsageLevel, MaxAcceptableUsageLevel, or ExcessiveUsageLevel.
public:
static property unsigned int RecentEnergyUsageLevel { unsigned int get(); };
static uint32_t RecentEnergyUsageLevel();
/// [get: Windows.Foundation.Metadata.Deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 393216, "Windows.Foundation.UniversalApiContract")]
static uint32_t RecentEnergyUsageLevel();
public static uint RecentEnergyUsageLevel { get; }
public static uint RecentEnergyUsageLevel { [Windows.Foundation.Metadata.Deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 393216, "Windows.Foundation.UniversalApiContract")] get; }
var uInt32 = ForegroundEnergyManager.recentEnergyUsageLevel;
Public Shared ReadOnly Property RecentEnergyUsageLevel As UInteger
Property Value
The nearest predefined energy level of the foreground app for the current 30 minute period.
- Attributes
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for