Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMetaDataImport::EnumMethodImpls method

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

Syntax


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

Parameters

phEnum [in, out]

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

tkTypeDef [in]

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

rMethodBody [out]

The array to store the MethodBody tokens.

rMethodDecl [out]

The array to store the MethodDeclaration tokens.

cMax [in]

The maximum size of the rMethodBody and rMethodDecl arrays.

pcTokens [out]

The actual number of methods returned in rMethodBody and rMethodDecl.

Return value

HRESULTDescription
S_OKEnumMethodImpls returned successfully.
S_FALSEThere are no method tokens to enumerate. In this case, pcTokens is 0 (zero).

 

Requirements

IDL

Rometadataapi.idl

See also

IMetaDataImport

 

 

Show: