I2cDevice.GetDeviceSelector 方法

定义

重载

GetDeviceSelector()

检索系统上所有集成电路 (I2 C) 总线控制器 (AQS) 字符串的高级查询语法。 可以将此字符串与 DeviceInformation.FindAllAsync 方法结合使用,以获取这些总线控制器的 DeviceInformation 对象。

GetDeviceSelector(String)

检索具有指定友好名称的集成线路 (I2 C) 总线 (AQS) 字符串的高级查询语法。 可以将此字符串与 DeviceInformation.FindAllAsync 方法结合使用,以获取该总线的 DeviceInformation 对象。

GetDeviceSelector()

检索系统上所有集成电路 (I2 C) 总线控制器 (AQS) 字符串的高级查询语法。 可以将此字符串与 DeviceInformation.FindAllAsync 方法结合使用,以获取这些总线控制器的 DeviceInformation 对象。

public:
 static Platform::String ^ GetDeviceSelector();
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelector")]
 static winrt::hstring GetDeviceSelector();
[Windows.Foundation.Metadata.Overload("GetDeviceSelector")]
public static string GetDeviceSelector();
function getDeviceSelector()
Public Shared Function GetDeviceSelector () As String

返回

String

Platform::String

winrt::hstring

系统上所有 I2 C 总线控制器的 AQS 字符串,可与 DeviceInformation.FindAllAsync 方法一起使用,以获取这些总线控制器的 DeviceInformation 对象。

属性

另请参阅

适用于

GetDeviceSelector(String)

检索具有指定友好名称的集成线路 (I2 C) 总线 (AQS) 字符串的高级查询语法。 可以将此字符串与 DeviceInformation.FindAllAsync 方法结合使用,以获取该总线的 DeviceInformation 对象。

public:
 static Platform::String ^ GetDeviceSelector(Platform::String ^ friendlyName);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelectorFromFriendlyName")]
 static winrt::hstring GetDeviceSelector(winrt::hstring const& friendlyName);
[Windows.Foundation.Metadata.Overload("GetDeviceSelectorFromFriendlyName")]
public static string GetDeviceSelector(string friendlyName);
function getDeviceSelector(friendlyName)
Public Shared Function GetDeviceSelector (friendlyName As String) As String

参数

friendlyName
String

Platform::String

winrt::hstring

要获取 AQS 字符串的特定硬件平台上特定 I2 C 总线的友好名称。

返回

String

Platform::String

winrt::hstring

friendlyName 指定的 I2 C 总线的 AQS 字符串,可与 DeviceInformation.FindAllAsync 方法一起使用以获取该总线的 DeviceInformation 对象。

属性

另请参阅

适用于