GattDeviceService.GetDeviceSelectorForBluetoothDeviceIdAndUuid Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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 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 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
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk