BatteryStatus Enum
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.
Defines values that represent the status of the battery on the device.
public enum class BatteryStatus
/// [Windows.Foundation.Metadata.Version(1)]
enum class BatteryStatus
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.System.Power.PowerNotificationsContract, 65536)]
enum class BatteryStatus
[Windows.Foundation.Metadata.Version(1)]
public enum BatteryStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.System.Power.PowerNotificationsContract), 65536)]
public enum BatteryStatus
var value = Microsoft.Windows.System.Power.BatteryStatus.notPresent
Public Enum BatteryStatus
- Inheritance
-
BatteryStatus
- Attributes
Fields
Name | Value | Description |
---|---|---|
NotPresent | 0 | The battery is not present. |
Discharging | 1 | The battery is discharging. |
Idle | 2 | The battery is idle. |
Charging | 3 | The battery is charging. |