Delen via


GattCharacteristic.GetDescriptors(Guid) Method

Definition

Returns a vector of descriptors, that are identified by the specified UUID, and belong to this GattCharacteristic instance.

Important

The GetDescriptors API is deprecated, and it may not be available in future versions of Windows. Instead, use GetDescriptorsForUuidAsync.

public:
 virtual IVectorView<GattDescriptor ^> ^ GetDescriptors(Platform::Guid descriptorUuid) = GetDescriptors;
IVectorView<GattDescriptor> GetDescriptors(winrt::guid const& descriptorUuid);
/// [Windows.Foundation.Metadata.Deprecated("Use GetDescriptorsForUuidAsync instead of GetDescriptors.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
IVectorView<GattDescriptor> GetDescriptors(winrt::guid const& descriptorUuid);
public IReadOnlyList<GattDescriptor> GetDescriptors(Guid descriptorUuid);
[Windows.Foundation.Metadata.Deprecated("Use GetDescriptorsForUuidAsync instead of GetDescriptors.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public IReadOnlyList<GattDescriptor> GetDescriptors(Guid descriptorUuid);
function getDescriptors(descriptorUuid)
Public Function GetDescriptors (descriptorUuid As Guid) As IReadOnlyList(Of GattDescriptor)

Parameters

descriptorUuid
Guid

Platform::Guid

winrt::guid

The UUID for the descriptors to be retrieved.

Returns

A vector of descriptors whose UUIDs match descriptorUuid.

Attributes

Windows requirements

App capabilities
bluetooth

Applies to