IMetaDataImport::EnumMethodImpls method (rometadataapi.h)

Enumerates MethodBody and MethodDeclaration tokens representing methods of the specified type.

Syntax

HRESULT EnumMethodImpls(
  [in, out] HCORENUM   *phEnum,
  [in]      mdTypeDef  tkTypeDef,
  [out]     mdToken [] rMethodBody,
  [out]     mdToken [] rMethodDecl,
  [in]      ULONG      cMax,
  [out]     ULONG      *pcTokens
);

Parameters

[in, out] phEnum

A pointer to the enumerator. This must be NULL for the first call of this method.

[in] tkTypeDef

A TypeDef token for the type whose method implementations to enumerate.

[out] rMethodBody

The array to store the MethodBody tokens.

[out] rMethodDecl

The array to store the MethodDeclaration tokens.

[in] cMax

The maximum size of the rMethodBody and rMethodDecl arrays.

[out] pcTokens

The actual number of methods returned in rMethodBody and rMethodDecl.

Return value

HRESULT Description
S_OK EnumMethodImpls returned successfully.
S_FALSE There are no method tokens to enumerate. In this case, pcTokens is 0 (zero).

Requirements

Requirement Value
Target Platform Windows
Header rometadataapi.h

See also

IMetaDataImport