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

可作为参数传递到 CreateWatcher 方法的 AQS 字符串。

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

适用于