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
蓝牙设备 ID。
- 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
蓝牙设备 ID。
返回
一个合适的 AQS 选择器字符串,可作为参数传递给 CreateWatcher 方法,以便检索 GATT 服务实例路径
- 属性
Windows 要求
设备系列 |
Windows 10 Creators Update (在 10.0.15063.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)
|
应用功能 |
bluetooth
|