BatteryStatus Enum

Definition

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

Charging 3

The battery is charging.

Discharging 1

The battery is discharging.

Idle 2

The battery is idle.

NotPresent 0

The battery is not present.

Applies to

See also