BluetoothLEDevice.GetDeviceSelectorFromConnectionStatus Methode

Definition

Erstellt eine AQS-Filterzeichenfolge (Advanced Query Syntax), die eine Abfrage für Bluetooth LE-Geräte mit dem angegebenen BluetoothConnectionStatus enthält. Die AQS-Zeichenfolge wird an die CreateWatcher-Methode übergeben, um eine Auflistung von DeviceInformation-Objekten mit der angegebenen Bluetooth-Verbindung status zurückzugeben.

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

Parameter

connectionStatus
BluetoothConnectionStatus

Die Verbindung status zum Erstellen der AQS-Zeichenfolge verwendet.

Gibt zurück

String

Platform::String

winrt::hstring

Eine AQS-Zeichenfolge, die als Parameter an die CreateWatcher-Methode übergeben werden kann.

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v2.0)
App-Funktionen
bluetooth

Gilt für: