共用方式為


BarcodeScanner.GetDeviceSelector 方法

定義

多載

GetDeviceSelector(PosConnectionTypes)

取得進階查詢語法 (AQS) 字串,可用來列出指定連線類型上可用的條碼掃描器

GetDeviceSelector()

取得進階查詢語法 (AQS) 字串,可用來列出可用的條碼掃描器。

GetDeviceSelector(PosConnectionTypes)

取得進階查詢語法 (AQS) 字串,可用來列出指定連線類型上可用的條碼掃描器

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

參數

connectionTypes
PosConnectionTypes

要測試可用條碼掃描器的連線類型清單。

傳回

String

Platform::String

winrt::hstring

進階查詢語法 (AQS) 字串,用來列舉指定連線類型上可用的條碼掃描器

屬性

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

適用於

GetDeviceSelector()

取得進階查詢語法 (AQS) 字串,可用來列出可用的條碼掃描器。

public:
 static Platform::String ^ GetDeviceSelector();
 static winrt::hstring GetDeviceSelector();
public static string GetDeviceSelector();
function getDeviceSelector()
Public Shared Function GetDeviceSelector () As String

傳回

String

Platform::String

winrt::hstring

進階查詢語法 (AQS) 字串,用來列舉可用的條碼掃描器。

適用於