BluetoothLEDevice.GetDeviceSelectorFromBluetoothAddress 方法

定义

重载

GetDeviceSelectorFromBluetoothAddress(UInt64)

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

GetDeviceSelectorFromBluetoothAddress(UInt64, BluetoothAddressType)

从表示蓝牙 LE 设备的 64 位地址和地址类型创建 (AQS) 筛选器字符串的高级查询语法。 AQS 字符串将传递到 CreateWatcher 方法中。

GetDeviceSelectorFromBluetoothAddress(UInt64)

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

public:
 static Platform::String ^ GetDeviceSelectorFromBluetoothAddress(unsigned long long bluetoothAddress);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelectorFromBluetoothAddress")]
 static winrt::hstring GetDeviceSelectorFromBluetoothAddress(uint64_t const& bluetoothAddress);
[Windows.Foundation.Metadata.Overload("GetDeviceSelectorFromBluetoothAddress")]
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 位蓝牙 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

另请参阅

适用于

GetDeviceSelectorFromBluetoothAddress(UInt64, BluetoothAddressType)

从表示蓝牙 LE 设备的 64 位地址和地址类型创建 (AQS) 筛选器字符串的高级查询语法。 AQS 字符串将传递到 CreateWatcher 方法中。

public:
 static Platform::String ^ GetDeviceSelectorFromBluetoothAddress(unsigned long long bluetoothAddress, BluetoothAddressType bluetoothAddressType);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelectorFromBluetoothAddressWithBluetoothAddressType")]
 static winrt::hstring GetDeviceSelectorFromBluetoothAddress(uint64_t const& bluetoothAddress, BluetoothAddressType const& bluetoothAddressType);
[Windows.Foundation.Metadata.Overload("GetDeviceSelectorFromBluetoothAddressWithBluetoothAddressType")]
public static string GetDeviceSelectorFromBluetoothAddress(ulong bluetoothAddress, BluetoothAddressType bluetoothAddressType);
function getDeviceSelectorFromBluetoothAddress(bluetoothAddress, bluetoothAddressType)
Public Shared Function GetDeviceSelectorFromBluetoothAddress (bluetoothAddress As ULong, bluetoothAddressType As BluetoothAddressType) As String

参数

bluetoothAddress
UInt64

unsigned long long

uint64_t

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

bluetoothAddressType
BluetoothAddressType

蓝牙 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

另请参阅

适用于