Battery.GetDeviceSelector 方法

定義

取得進階查詢語法 (AQS) 字串,可用來尋找連線到裝置的所有電池控制器。

public:
 static Platform::String ^ GetDeviceSelector();
 static winrt::hstring GetDeviceSelector();
public static string GetDeviceSelector();
function getDeviceSelector()
Public Shared Function GetDeviceSelector () As String

傳回

String

Platform::String

winrt::hstring

AQS 字串,可用來尋找連線到裝置的所有電池控制器。

備註

使用 GetDeviceSelector 所傳回的 AQS 字串搭配 DeviceInformation API 來尋找連線到裝置的所有電池控制器。 如需如何建立Battery物件的資訊,請參閱FromIdAsync

適用於

另請參閱