GattCharacteristic.GetDescriptorsForUuidAsync 方法

定义

重载

GetDescriptorsForUuidAsync(Guid)

返回其 UUID 与描述符Uuid 匹配的描述符。

GetDescriptorsForUuidAsync(Guid, BluetoothCacheMode)

返回其 UUID 与指定 cacheMode 匹配描述符Uuid 的描述符。

GetDescriptorsForUuidAsync(Guid)

返回其 UUID 与描述符Uuid 匹配的描述符。

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

参数

descriptorUuid
Guid

Platform::Guid

winrt::guid

要检索的描述符的 UUID。

返回

使用其 UUID 与描述符Uuid 匹配的描述符完成的异步操作。

属性

Windows 要求

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

适用于

GetDescriptorsForUuidAsync(Guid, BluetoothCacheMode)

返回其 UUID 与指定 cacheMode 匹配描述符Uuid 的描述符。

public:
 virtual IAsyncOperation<GattDescriptorsResult ^> ^ GetDescriptorsForUuidAsync(Platform::Guid descriptorUuid, BluetoothCacheMode cacheMode) = GetDescriptorsForUuidAsync;
/// [Windows.Foundation.Metadata.Overload("GetDescriptorsForUuidWithCacheModeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattDescriptorsResult> GetDescriptorsForUuidAsync(winrt::guid const& descriptorUuid, BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetDescriptorsForUuidWithCacheModeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattDescriptorsResult> GetDescriptorsForUuidAsync(Guid descriptorUuid, BluetoothCacheMode cacheMode);
function getDescriptorsForUuidAsync(descriptorUuid, cacheMode)
Public Function GetDescriptorsForUuidAsync (descriptorUuid As Guid, cacheMode As BluetoothCacheMode) As IAsyncOperation(Of GattDescriptorsResult)

参数

descriptorUuid
Guid

Platform::Guid

winrt::guid

要检索的描述符的 UUID。

cacheMode
BluetoothCacheMode

缓存模式。

返回

返回一个异步操作,该操作与描述符Uuid 的描述符一起完成。

属性

Windows 要求

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

适用于