Share via


GattDeviceService.GetDeviceSelectorForBluetoothDeviceId Method

Definition

Overloads

GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId, BluetoothCacheMode)

Creates a suitable AQS Filter string for use with the CreateWatcher method, from a BluetoothDeviceId.

GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId)

Creates a suitable AQS Filter string for use with the CreateWatcher method, from a BluetoothDeviceId.

GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId, BluetoothCacheMode)

Creates a suitable AQS Filter string for use with the CreateWatcher method, from a BluetoothDeviceId.

public:
 static Platform::String ^ GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId ^ bluetoothDeviceId, BluetoothCacheMode cacheMode);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelectorForBluetoothDeviceIdWithCacheMode")]
 static winrt::hstring GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId const& bluetoothDeviceId, BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetDeviceSelectorForBluetoothDeviceIdWithCacheMode")]
public static string GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId bluetoothDeviceId, BluetoothCacheMode cacheMode);
function getDeviceSelectorForBluetoothDeviceId(bluetoothDeviceId, cacheMode)
Public Shared Function GetDeviceSelectorForBluetoothDeviceId (bluetoothDeviceId As BluetoothDeviceId, cacheMode As BluetoothCacheMode) As String

Parameters

bluetoothDeviceId
BluetoothDeviceId

The bluetooth device ID.

cacheMode
BluetoothCacheMode

The cache mode.

Returns

String

Platform::String

winrt::hstring

A suitable AQS Selector String which can be passed as a parameter to the CreateWatcher method, in order to retrieve a GATT service instance path

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)
App capabilities
bluetooth

Applies to

GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId)

Creates a suitable AQS Filter string for use with the CreateWatcher method, from a BluetoothDeviceId.

public:
 static Platform::String ^ GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId ^ bluetoothDeviceId);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelectorForBluetoothDeviceId")]
 static winrt::hstring GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId const& bluetoothDeviceId);
[Windows.Foundation.Metadata.Overload("GetDeviceSelectorForBluetoothDeviceId")]
public static string GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId bluetoothDeviceId);
function getDeviceSelectorForBluetoothDeviceId(bluetoothDeviceId)
Public Shared Function GetDeviceSelectorForBluetoothDeviceId (bluetoothDeviceId As BluetoothDeviceId) As String

Parameters

bluetoothDeviceId
BluetoothDeviceId

The bluetooth device ID.

Returns

String

Platform::String

winrt::hstring

A suitable AQS Selector String which can be passed as a parameter to the CreateWatcher method, in order to retrieve a GATT service instance path

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)
App capabilities
bluetooth

Applies to