PowerManager.PowerSourceKind 属性

定义

获取设备的当前电源。

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

属性值

设备的当前电源。

注解

此属性对应于 GUID_ACDC_POWER_SOURCE电源设置 GUID

适用于

另请参阅