Dela via


PowerSupplyStatus Enum

Definition

Represents the device's power supply status.

public enum class PowerSupplyStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class PowerSupplyStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum PowerSupplyStatus
var value = Windows.System.Power.PowerSupplyStatus.notPresent
Public Enum PowerSupplyStatus
Inheritance
PowerSupplyStatus
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
NotPresent 0

The device has no power supply.

Inadequate 1

The device has an inadequate power supply.

Adequate 2

The device has an adequate power supply.

Remarks

An Inadequate status occurs when the power supply is present, but the charge rate is negative. For example, the device is plugged in, but it’s losing charge.

Applies to