PowerManager.RemainingChargePercent 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 remaining charge percentage of the battery on the device.
public:
static property int RemainingChargePercent { int get(); };
static int RemainingChargePercent();
public static int RemainingChargePercent { get; }
var int32 = PowerManager.remainingChargePercent;
Public Shared ReadOnly Property RemainingChargePercent As Integer
Property Value
Int32
int
The remaining charge percentage of the battery.
Remarks
The granularity varies from system to system but the finest granularity is 1 percent. This property corresponds to the GUID_BATTERY_PERCENTAGE_REMAINING power setting GUID.