GattCharacteristic.GetDescriptors(Guid) 方法

定义

返回描述符的向量,该描述符由指定的 UUID 标识,属于此 GattCharacteristic 实例。

重要

GetDescriptors API 已弃用,将来的 Windows 版本中可能不可用。 请改用 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)

参数

descriptorUuid
Guid

Platform::Guid

winrt::guid

要检索的描述符的 UUID。

返回

其 UUID 匹配描述符Uuid 的描述符的向量。

属性

Windows 要求

应用功能
bluetooth

适用于