Поделиться через


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

Применяется к