Dela via


BluetoothLEDevice.GetDeviceSelectorFromBluetoothAddress Method

Definition

Overloads

GetDeviceSelectorFromBluetoothAddress(UInt64)

Creates an Advanced Query Syntax (AQS) filter string from a 64-bit address that represents a Bluetooth LE device. The AQS string is passed into the CreateWatcher method to return a collection of DeviceInformation objects.

GetDeviceSelectorFromBluetoothAddress(UInt64, BluetoothAddressType)

Creates an Advanced Query Syntax (AQS) filter string from a 64-bit address and address type that represents a Bluetooth LE device. The AQS string is passed into the CreateWatcher method.

GetDeviceSelectorFromBluetoothAddress(UInt64)

Creates an Advanced Query Syntax (AQS) filter string from a 64-bit address that represents a Bluetooth LE device. The AQS string is passed into the CreateWatcher method to return a collection of DeviceInformation objects.

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

Parameters

bluetoothAddress
UInt64

unsigned long long

uint64_t

A 64-bit Bluetooth LE device address used for constructing the AQS string.

Returns

String

Platform::String

winrt::hstring

An AQS string that can be passed as a parameter to the CreateWatcher method.

Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)
App capabilities
bluetooth

See also

Applies to

GetDeviceSelectorFromBluetoothAddress(UInt64, BluetoothAddressType)

Creates an Advanced Query Syntax (AQS) filter string from a 64-bit address and address type that represents a Bluetooth LE device. The AQS string is passed into the CreateWatcher method.

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

Parameters

bluetoothAddress
UInt64

unsigned long long

uint64_t

A 64-bit Bluetooth LE device address used for constructing the AQS string.

bluetoothAddressType
BluetoothAddressType

The Bluetooth LE device address type.

Returns

String

Platform::String

winrt::hstring

An AQS string that can be passed as a parameter to the CreateWatcher method.

Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)
App capabilities
bluetooth

See also

Applies to