BluetoothLEDevice.GetDeviceSelectorFromAppearance 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从 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 外观。
返回
可作为参数传递到 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
|