共用方式為


BluetoothLEDevice.GetDeviceSelectorFromAppearance 方法

定義

BluetoothLEAppearance 物件建立 (AQS) 篩選字串的進階查詢語法。 AQS 字串會傳遞至 CreateWatcher 方法,以傳回具有指定外觀的 DeviceInformation 物件集合。

public:
 static Platform::String ^ GetDeviceSelectorFromAppearance(BluetoothLEAppearance ^ appearance);
 static winrt::hstring GetDeviceSelectorFromAppearance(BluetoothLEAppearance const& appearance);
public static string GetDeviceSelectorFromAppearance(BluetoothLEAppearance appearance);
function getDeviceSelectorFromAppearance(appearance)
Public Shared Function GetDeviceSelectorFromAppearance (appearance As BluetoothLEAppearance) As String

參數

appearance
BluetoothLEAppearance

用於建構 AQS 字串的藍牙 LE 外觀。

傳回

String

Platform::String

winrt::hstring

AQS 字串,可當做參數傳遞至 CreateWatcher 方法。

Windows 需求

裝置系列
Windows 10 (已於 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v2.0 引進)
應用程式功能
bluetooth

適用於