I2CBus.GetDeviceSelector(String) | getDeviceSelector(String) method
[This documentation is preliminary and is subject to change.]
Retrieves an Advanced Query Syntax (AQS) string for the inter-integrated circuit (I²C) bus that has the specified friendly name. You can use this string with the DeviceInformation.FindAllAsync method to get a DeviceInformation object for that bus.
Syntax
var string = Windows.Devices.I2C.I2CBus.getDeviceSelector(friendlyName);
public static string GetDeviceSelector(
string friendlyName
)
Public Shared Function GetDeviceSelector(
friendlyName As String
) As String
public:
static String^ GetDeviceSelector(
String^ friendlyName
)
Parameters
friendlyName
Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]A friendly name the particular I²C bus on a particular hardware platform for which you want to get the AQS string.
Return value
Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]
An AQS string for the I²C bus that friendlyName specifies, which you can use with the DeviceInformation.FindAllAsync method to get a DeviceInformation object for that bus.
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 |