Battery.GetDeviceSelector Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an Advanced Query Syntax (AQS) string that can be used to find all battery controllers that are connected to the device.
public:
static Platform::String ^ GetDeviceSelector();
static winrt::hstring GetDeviceSelector();
public static string GetDeviceSelector();
function getDeviceSelector()
Public Shared Function GetDeviceSelector () As String
Returns
An AQS string that can be used to find all battery controllers connected to the device.
Remarks
Use the AQS string returned by GetDeviceSelector with the DeviceInformation APIs to find all battery controllers that are connected to the device. See FromIdAsync for information on how to create a Battery object.