IMetaDataImport::EnumProperties 方法

更新:2007 年 11 月

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

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

参数

  • phEnum
    [in, out] 指向该枚举数的指针。在首次调用这一方法时,此指针必须为 NULL。

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

  • rProperties
    [out] 用于存储 PropertyDef 标记的数组。

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

  • pcProperties
    [out] rProperties 中返回的 PropertyDef 标记数。

返回值

HRESULT

说明

S_OK

EnumProperties 成功返回。

S_FALSE

没有要枚举的标记。在这种情况下,pcProperties 将为零。

要求

**平台:**请参见 .NET Framework 系统要求

**头文件:**Cor.h

**库:**作为一项资源包含在 MsCorEE.dll 中

**.NET Framework 版本:**3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0、1.1、1.0

请参见

参考

IMetaDataImport

IMetaDataImport2