BluetoothLEDevice.GetDeviceSelectorFromConnectionStatus Method

Definition

Creates an Advanced Query Syntax (AQS) filter string that contains a query for Bluetooth LE devices with the indicated BluetoothConnectionStatus. The AQS string is passed into the CreateWatcher method to return a collection of DeviceInformation objects with the indicated Bluetooth connection status.

public:
 static Platform::String ^ GetDeviceSelectorFromConnectionStatus(BluetoothConnectionStatus connectionStatus);
 static winrt::hstring GetDeviceSelectorFromConnectionStatus(BluetoothConnectionStatus const& connectionStatus);
public static string GetDeviceSelectorFromConnectionStatus(BluetoothConnectionStatus connectionStatus);
function getDeviceSelectorFromConnectionStatus(connectionStatus)
Public Shared Function GetDeviceSelectorFromConnectionStatus (connectionStatus As BluetoothConnectionStatus) As String

Parameters

connectionStatus
BluetoothConnectionStatus

The connection status 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.

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

Applies to