IMetaDataImport::EnumProperties Method

枚举表示由指定 TypeDef 标记引用的类型的属性的 PropertyDef 标记。

Syntax

HRESULT EnumProperties (
   [in, out] HCORENUM    *phEnum,
   [in]      mdTypeDef   td,
   [out]     mdProperty  rProperties[],
   [in]      ULONG       cMax,
   [out]     ULONG       *pcProperties
);

Parameters

phEnum [in, out]指向枚举器的指针。 对于此方法的第一次调用,这必须为 NULL。

td [in]一个 TypeDef 标记,表示要枚举的属性的类型。

rProperties [out]用于存储 PropertyDef 令牌的数组。

cMax [in]数组的最大大小 rProperties

pcProperties [out]返回 rProperties的 PropertyDef 令牌数。

Return Value

HRESULT Description
S_OK EnumProperties 已成功返回。
S_FALSE 没有要枚举的令牌。 在这种情况下, pcProperties 为零。

Requirements

平台: 请参阅 .NET 支持的作系统

Header: Cor.h

Library: CorGuids.lib

See also