GattDeviceService.GetCharacteristicsForUuidAsync 方法

定义

重载

GetCharacteristicsForUuidAsync(Guid, BluetoothCacheMode)

获取属于此 GattDeviceService 实例并与特征Uuid 关联的字符。

GetCharacteristicsForUuidAsync(Guid)

获取属于此 GattDeviceService 实例并与特征Uuid 关联的字符。

GetCharacteristicsForUuidAsync(Guid, BluetoothCacheMode)

获取属于此 GattDeviceService 实例并与特征Uuid 关联的字符。

public:
 virtual IAsyncOperation<GattCharacteristicsResult ^> ^ GetCharacteristicsForUuidAsync(Platform::Guid characteristicUuid, BluetoothCacheMode cacheMode) = GetCharacteristicsForUuidAsync;
/// [Windows.Foundation.Metadata.Overload("GetCharacteristicsForUuidWithCacheModeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattCharacteristicsResult> GetCharacteristicsForUuidAsync(winrt::guid const& characteristicUuid, BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetCharacteristicsForUuidWithCacheModeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattCharacteristicsResult> GetCharacteristicsForUuidAsync(Guid characteristicUuid, BluetoothCacheMode cacheMode);
function getCharacteristicsForUuidAsync(characteristicUuid, cacheMode)
Public Function GetCharacteristicsForUuidAsync (characteristicUuid As Guid, cacheMode As BluetoothCacheMode) As IAsyncOperation(Of GattCharacteristicsResult)

参数

characteristicUuid
Guid

Platform::Guid

winrt::guid

要检索的特征的 UUID。

cacheMode
BluetoothCacheMode

缓存模式。

返回

使用 GattCharacteristicsResult 对象完成的异步操作。

属性

Windows 要求

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

适用于

GetCharacteristicsForUuidAsync(Guid)

获取属于此 GattDeviceService 实例并与特征Uuid 关联的字符。

public:
 virtual IAsyncOperation<GattCharacteristicsResult ^> ^ GetCharacteristicsForUuidAsync(Platform::Guid characteristicUuid) = GetCharacteristicsForUuidAsync;
/// [Windows.Foundation.Metadata.Overload("GetCharacteristicsForUuidAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattCharacteristicsResult> GetCharacteristicsForUuidAsync(winrt::guid const& characteristicUuid);
[Windows.Foundation.Metadata.Overload("GetCharacteristicsForUuidAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattCharacteristicsResult> GetCharacteristicsForUuidAsync(Guid characteristicUuid);
function getCharacteristicsForUuidAsync(characteristicUuid)
Public Function GetCharacteristicsForUuidAsync (characteristicUuid As Guid) As IAsyncOperation(Of GattCharacteristicsResult)

参数

characteristicUuid
Guid

Platform::Guid

winrt::guid

要检索的特征的 UUID。

返回

使用 GattCharacteristicsResult 对象完成的异步操作。

属性

Windows 要求

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

适用于