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
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
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