GattLocalCharacteristic.CreateDescriptorAsync 方法

定义

为此局部特征创建描述符。

public:
 virtual IAsyncOperation<GattLocalDescriptorResult ^> ^ CreateDescriptorAsync(Platform::Guid descriptorUuid, GattLocalDescriptorParameters ^ parameters) = CreateDescriptorAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattLocalDescriptorResult> CreateDescriptorAsync(winrt::guid const& descriptorUuid, GattLocalDescriptorParameters const& parameters);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattLocalDescriptorResult> CreateDescriptorAsync(Guid descriptorUuid, GattLocalDescriptorParameters parameters);
function createDescriptorAsync(descriptorUuid, parameters)
Public Function CreateDescriptorAsync (descriptorUuid As Guid, parameters As GattLocalDescriptorParameters) As IAsyncOperation(Of GattLocalDescriptorResult)

参数

descriptorUuid
Guid

Platform::Guid

winrt::guid

描述符 UUID。

parameters
GattLocalDescriptorParameters

描述符的参数。

返回

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

属性

Windows 要求

应用功能
bluetooth

适用于