GattDeviceService.GetDeviceSelectorForBluetoothDeviceIdAndUuid 方法

定义

重载

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

蓝牙设备 ID。

serviceUuid
Guid

Platform::Guid

winrt::guid

GATT 服务 ID。

返回

String

Platform::String

winrt::hstring

合适的 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

蓝牙设备 ID。

serviceUuid
Guid

Platform::Guid

winrt::guid

GATT 服务 ID。

cacheMode
BluetoothCacheMode

缓存模式。

返回

String

Platform::String

winrt::hstring

合适的 AQS 选择器字符串,可作为参数传递给 CreateWatcher 方法,以便检索 GATT 服务实例路径

属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)
应用功能
bluetooth

适用于