Share via


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物件。

屬性

另請參閱

適用於