II2cDeviceStatics.GetDeviceSelector 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| GetDeviceSelector() |
检索系统上所有集成电路间 (I2 C) 总线控制器的高级查询语法 (AQS) 字符串。 可以将此字符串与 DeviceInformation.FindAllAsync 方法一起使用,以获取这些总线控制器的 DeviceInformation 对象。 |
| GetDeviceSelector(String) |
检索具有指定友好名称的集成线路 (I2 C) 总线 (AQS) 字符串的高级查询语法。 可以将此字符串与 DeviceInformation.FindAllAsync 方法一起使用,以获取该总线的 DeviceInformation 对象。 |
GetDeviceSelector()
检索系统上所有集成电路间 (I2 C) 总线控制器的高级查询语法 (AQS) 字符串。 可以将此字符串与 DeviceInformation.FindAllAsync 方法一起使用,以获取这些总线控制器的 DeviceInformation 对象。
public:
Platform::String ^ GetDeviceSelector();
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelector")]
winrt::hstring GetDeviceSelector();
[Windows.Foundation.Metadata.Overload("GetDeviceSelector")]
public string GetDeviceSelector();
function getDeviceSelector()
Public Function GetDeviceSelector () As String
返回
系统上所有 I2 C 总线控制器的 AQS 字符串,可与 DeviceInformation.FindAllAsync 方法一起使用,以获取这些总线控制器的 DeviceInformation 对象。
- 属性
另请参阅
适用于
GetDeviceSelector(String)
检索具有指定友好名称的集成线路 (I2 C) 总线 (AQS) 字符串的高级查询语法。 可以将此字符串与 DeviceInformation.FindAllAsync 方法一起使用,以获取该总线的 DeviceInformation 对象。
public:
Platform::String ^ GetDeviceSelector(Platform::String ^ friendlyName);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelectorFromFriendlyName")]
winrt::hstring GetDeviceSelector(winrt::hstring const& friendlyName);
[Windows.Foundation.Metadata.Overload("GetDeviceSelectorFromFriendlyName")]
public string GetDeviceSelector(string friendlyName);
function getDeviceSelector(friendlyName)
Public Function GetDeviceSelector (friendlyName As String) As String
参数
- friendlyName
-
String
Platform::String
winrt::hstring
要获取 AQS 字符串的特定硬件平台上特定 I2 C 总线的友好名称。
返回
friendlyName 指定的 I2 C 总线的 AQS 字符串,可与 DeviceInformation.FindAllAsync 方法一起使用,以获取该总线的 DeviceInformation 对象。
- 属性
另请参阅
- GetDeviceSelector()
- FindAllAsync(String)
- FromIdAsync(String, I2cConnectionSettings)
- GetDeviceSelector(String)