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


BluetoothLEDevice.GetDeviceSelectorFromBluetoothAddress Метод

Определение

Перегрузки

GetDeviceSelectorFromBluetoothAddress(UInt64)

Создает строку фильтра расширенного синтаксиса запросов (AQS) на основе 64-разрядного адреса, представляющего устройство Bluetooth LE. Строка AQS передается в метод CreateWatcher для возврата коллекции объектов DeviceInformation .

GetDeviceSelectorFromBluetoothAddress(UInt64, BluetoothAddressType)

Создает строку фильтра расширенного синтаксиса запросов (AQS) на основе 64-разрядного адреса и типа адреса, представляющего устройство Bluetooth LE. Строка AQS передается в метод CreateWatcher .

GetDeviceSelectorFromBluetoothAddress(UInt64)

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

64-разрядный адрес устройства Bluetooth LE, используемый для создания строки 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

См. также раздел

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

GetDeviceSelectorFromBluetoothAddress(UInt64, BluetoothAddressType)

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

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

bluetoothAddressType
BluetoothAddressType

Тип адреса устройства Bluetooth LE.

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

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

См. также раздел

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