GattDeviceService.GetDeviceSelectorForBluetoothDeviceId 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
GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId, BluetoothCacheMode) |
Membuat string Filter AQS yang sesuai untuk digunakan dengan metode CreateWatcher , dari BluetoothDeviceId. |
GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId) |
Membuat string Filter AQS yang sesuai untuk digunakan dengan metode CreateWatcher , dari BluetoothDeviceId. |
GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId, BluetoothCacheMode)
Membuat string Filter AQS yang sesuai untuk digunakan dengan metode CreateWatcher , dari 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
ID perangkat bluetooth.
- 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
GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId)
Membuat string Filter AQS yang sesuai untuk digunakan dengan metode CreateWatcher , dari 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
ID perangkat bluetooth.
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