Freigeben über


BluetoothLEDevice.GetDeviceSelectorFromAppearance Methode

Definition

Erstellt eine AQS-Filterzeichenfolge (Advanced Query Syntax) aus einem BluetoothLEAppearance-Objekt . Die AQS-Zeichenfolge wird an die CreateWatcher-Methode übergeben, um eine Auflistung von DeviceInformation-Objekten mit der angegebenen Darstellung zurückzugeben.

public:
 static Platform::String ^ GetDeviceSelectorFromAppearance(BluetoothLEAppearance ^ appearance);
 static winrt::hstring GetDeviceSelectorFromAppearance(BluetoothLEAppearance const& appearance);
public static string GetDeviceSelectorFromAppearance(BluetoothLEAppearance appearance);
function getDeviceSelectorFromAppearance(appearance)
Public Shared Function GetDeviceSelectorFromAppearance (appearance As BluetoothLEAppearance) As String

Parameter

appearance
BluetoothLEAppearance

Die Bluetooth LE-Darstellung, die zum Erstellen der AQS-Zeichenfolge verwendet wird.

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: