BluetoothDevice.GetDeviceSelectorFromBluetoothAddress(UInt64) 方法

定义

从表示蓝牙设备的 64 位地址创建 (AQS) 筛选器字符串的高级查询语法。 AQS 字符串将传递到 CreateWatcher 方法,以返回 DeviceInformation 对象的集合。

public:
 static Platform::String ^ GetDeviceSelectorFromBluetoothAddress(unsigned long long bluetoothAddress);
 static winrt::hstring GetDeviceSelectorFromBluetoothAddress(uint64_t const& bluetoothAddress);
public static string GetDeviceSelectorFromBluetoothAddress(ulong bluetoothAddress);
function getDeviceSelectorFromBluetoothAddress(bluetoothAddress)
Public Shared Function GetDeviceSelectorFromBluetoothAddress (bluetoothAddress As ULong) As String

参数

bluetoothAddress
UInt64

unsigned long long

uint64_t

用于构造 AQS 字符串的 64 位蓝牙设备地址。

返回

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

适用于