Share via


GattDeviceService.GetDeviceSelectorForBluetoothDeviceId Methode

Definition

Überlädt

GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId, BluetoothCacheMode)

Erstellt eine geeignete AQS-Filterzeichenfolge für die Verwendung mit der CreateWatcher-Methode aus einer BluetoothDeviceId.

GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId)

Erstellt eine geeignete AQS-Filterzeichenfolge für die Verwendung mit der CreateWatcher-Methode aus einer BluetoothDeviceId.

GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId, BluetoothCacheMode)

Erstellt eine geeignete AQS-Filterzeichenfolge für die Verwendung mit der CreateWatcher-Methode aus einer 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

Parameter

bluetoothDeviceId
BluetoothDeviceId

Die Bluetooth-Geräte-ID.

cacheMode
BluetoothCacheMode

Der Cachemodus.

Gibt zurück

String

Platform::String

winrt::hstring

Eine geeignete AQS-Selector-Zeichenfolge, die als Parameter an die CreateWatcher-Methode übergeben werden kann, um einen GATT-Dienst instance Pfad abzurufen.

Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 Creators Update (eingeführt in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v4.0)
App-Funktionen
bluetooth

Gilt für:

GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId)

Erstellt eine geeignete AQS-Filterzeichenfolge für die Verwendung mit der CreateWatcher-Methode aus einer 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

Parameter

bluetoothDeviceId
BluetoothDeviceId

Die Bluetooth-Geräte-ID.

Gibt zurück

String

Platform::String

winrt::hstring

Eine geeignete AQS-Selector-Zeichenfolge, die als Parameter an die CreateWatcher-Methode übergeben werden kann, um einen GATT-Dienst instance Pfad abzurufen.

Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 Creators Update (eingeführt in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v4.0)
App-Funktionen
bluetooth

Gilt für: