Поделиться через


BluetoothDevice.GetDeviceSelectorFromBluetoothAddress(UInt64) Метод

Определение

Создает строку фильтра расширенного синтаксиса запросов (AQS) из 64-разрядного адреса, представляющего устройство Bluetooth. Строка 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

64-разрядный адрес устройства Bluetooth, используемый для создания строки AQS.

Возвращаемое значение

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

Применяется к