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