GattDeviceService.GetDeviceSelectorForBluetoothDeviceIdAndUuid Metode

Definisi

Overload

GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId, Guid)

Membuat string Filter AQS yang sesuai untuk digunakan dengan metode CreateWatcher , dari BluetoothDeviceId dan serviceUuid.

GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId, Guid, BluetoothCacheMode)

Membuat string Filter AQS yang sesuai untuk digunakan dengan metode CreateWatcher , dari BluetoothDeviceId dan serviceUuid.

GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId, Guid)

Membuat string Filter AQS yang sesuai untuk digunakan dengan metode CreateWatcher , dari BluetoothDeviceId dan serviceUuid.

public:
 static Platform::String ^ GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId ^ bluetoothDeviceId, Platform::Guid serviceUuid);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelectorForBluetoothDeviceIdAndUuid")]
 static winrt::hstring GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId const& bluetoothDeviceId, winrt::guid const& serviceUuid);
[Windows.Foundation.Metadata.Overload("GetDeviceSelectorForBluetoothDeviceIdAndUuid")]
public static string GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId bluetoothDeviceId, Guid serviceUuid);
function getDeviceSelectorForBluetoothDeviceIdAndUuid(bluetoothDeviceId, serviceUuid)
Public Shared Function GetDeviceSelectorForBluetoothDeviceIdAndUuid (bluetoothDeviceId As BluetoothDeviceId, serviceUuid As Guid) As String

Parameter

bluetoothDeviceId
BluetoothDeviceId

ID perangkat bluetooth.

serviceUuid
Guid

Platform::Guid

winrt::guid

ID layanan GATT.

Mengembalikan

String

Platform::String

winrt::hstring

String Pemilih AQS yang sesuai yang dapat diteruskan sebagai parameter ke metode CreateWatcher , untuk mengambil jalur instans layanan GATT

Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 Creators Update (diperkenalkan dalam 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v4.0)
Kemampuan aplikasi
bluetooth

Berlaku untuk

GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId, Guid, BluetoothCacheMode)

Membuat string Filter AQS yang sesuai untuk digunakan dengan metode CreateWatcher , dari BluetoothDeviceId dan serviceUuid.

public:
 static Platform::String ^ GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId ^ bluetoothDeviceId, Platform::Guid serviceUuid, BluetoothCacheMode cacheMode);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelectorForBluetoothDeviceIdAndUuidWithCacheMode")]
 static winrt::hstring GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId const& bluetoothDeviceId, winrt::guid const& serviceUuid, BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetDeviceSelectorForBluetoothDeviceIdAndUuidWithCacheMode")]
public static string GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId bluetoothDeviceId, Guid serviceUuid, BluetoothCacheMode cacheMode);
function getDeviceSelectorForBluetoothDeviceIdAndUuid(bluetoothDeviceId, serviceUuid, cacheMode)
Public Shared Function GetDeviceSelectorForBluetoothDeviceIdAndUuid (bluetoothDeviceId As BluetoothDeviceId, serviceUuid As Guid, cacheMode As BluetoothCacheMode) As String

Parameter

bluetoothDeviceId
BluetoothDeviceId

ID perangkat bluetooth.

serviceUuid
Guid

Platform::Guid

winrt::guid

ID layanan GATT.

cacheMode
BluetoothCacheMode

Mode cache.

Mengembalikan

String

Platform::String

winrt::hstring

String Pemilih AQS yang sesuai yang dapat diteruskan sebagai parameter ke metode CreateWatcher , untuk mengambil jalur instans layanan GATT

Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 Creators Update (diperkenalkan dalam 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v4.0)
Kemampuan aplikasi
bluetooth

Berlaku untuk