枚举 PropertyDef 标记,这些标记表示指定的 TypeDef 标记所引用的类型的属性。
语法
HRESULT EnumProperties(
  [in, out] HCORENUM      *phEnum,
  [in]      mdTypeDef     tkTypDef,
  [out]     mdProperty [] rgProperties,
  [in]      ULONG         cMax,
  [out]     ULONG         *pcProperties
);
参数
[in, out] phEnum
指向枚举器的指针。 第一次调用此方法时,此值必须为 NULL。
[in] tkTypDef
一个 TypeDef 标记,表示具有要枚举的属性的类型。
[out] rgProperties
用于存储 PropertyDef 标记的数组。
[in] cMax
rgProperties 数组的最大大小。
[out] pcProperties
rgProperties 中返回的 PropertyDef 标记数。
返回值
| HRESULT | 说明 | 
|---|---|
| S_OK | 已成功返回 EnumProperties 。 | 
| S_FALSE | 没有要枚举的标记。 在这种情况下, pcProperties 为 0 (零) 。 | 
要求
| 要求 | 值 | 
|---|---|
| 目标平台 | Windows | 
| 标头 | rometadataapi.h |