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

適用於

另請參閱