I2CBus.GetDeviceSelector() | getDeviceSelector() method

[This documentation is preliminary and is subject to change.]

Retrieves an Advanced Query Syntax (AQS) string for all of the inter-integrated circuit (I²C) bus controllers on the system. You can use this string with the DeviceInformation.FindAllAsync method to get DeviceInformation objects for those bus controllers.

Syntax

var string = Windows.Devices.I2C.I2CBus.getDeviceSelector();
public static string GetDeviceSelector()
Public Shared Function GetDeviceSelector() As String
public:
static String^ GetDeviceSelector()

Parameters

This method has no parameters.

Return value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

An AQS string for all of the I²C bus controllers on the system, which you can use with the DeviceInformation.FindAllAsync method to get DeviceInformation objects for those bus controllers.

Requirements (device family)

Device family

Universal

API contract

Windows.Devices.DevicesLowLevelContract, introduced version 1.0

Namespace

Windows.Devices.I2C Windows::Devices::I2C [C++]

Metadata

Windows.Devices.DevicesLowLevelContract.winmd

See also

I2CBus

GetDeviceSelector(String)

DeviceInformation.FindAllAsync