GattDeviceService.GetDeviceSelectorForBluetoothDeviceIdAndUuid 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId, Guid) |
從 BluetoothDeviceId 和 serviceUuid 建立適當的 AQS 篩選字串,以搭配 CreateWatcher 方法使用。 |
GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId, Guid, BluetoothCacheMode) |
從 BluetoothDeviceId 和 serviceUuid 建立適當的 AQS 篩選字串,以搭配 CreateWatcher 方法使用。 |
GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId, Guid)
從 BluetoothDeviceId 和 serviceUuid 建立適當的 AQS 篩選字串,以搭配 CreateWatcher 方法使用。
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
參數
- bluetoothDeviceId
- BluetoothDeviceId
藍牙裝置識別碼。
- serviceUuid
-
Guid
Platform::Guid
winrt::guid
GATT 服務識別碼。
傳回
適當的 AQS 選取器字串,可當做參數傳遞至 CreateWatcher 方法,以便擷取 GATT 服務實例路徑
- 屬性
Windows 需求
裝置系列 |
Windows 10 Creators Update (已於 10.0.15063.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)
|
應用程式功能 |
bluetooth
|
適用於
GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId, Guid, BluetoothCacheMode)
從 BluetoothDeviceId 和 serviceUuid 建立適當的 AQS 篩選字串,以搭配 CreateWatcher 方法使用。
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
參數
- bluetoothDeviceId
- BluetoothDeviceId
藍牙裝置識別碼。
- serviceUuid
-
Guid
Platform::Guid
winrt::guid
GATT 服務識別碼。
- cacheMode
- BluetoothCacheMode
快取模式。
傳回
適當的 AQS 選取器字串,可當做參數傳遞至 CreateWatcher 方法,以便擷取 GATT 服務實例路徑
- 屬性
Windows 需求
裝置系列 |
Windows 10 Creators Update (已於 10.0.15063.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)
|
應用程式功能 |
bluetooth
|