PowerManager.PowerSupplyStatus 属性

定义

获取设备的电源状态。

public:
 static property PowerSupplyStatus PowerSupplyStatus { PowerSupplyStatus get(); };
static PowerSupplyStatus PowerSupplyStatus();
public static PowerSupplyStatus PowerSupplyStatus { get; }
var powerSupplyStatus = PowerManager.powerSupplyStatus;
Public Shared ReadOnly Property PowerSupplyStatus As PowerSupplyStatus

属性值

设备的电源状态。

适用于