Partilhar via


IMetaDataImport::EnumMethodImpls Method

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

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

Parameters

Parameter Description

phEnum

[in, out] A pointer to the enumerator. This must be NULL for the first call of this method.

td

[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

[in] 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 that case, pcTokens is zero.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: Cor.h

Library: Included as a resource in Mscoree.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

IMetaDataImport Interface
IMetaDataImport2 Interface