Freigeben über


IMetaDataImport::EnumMethods Method

Enumerates MethodDef tokens representing methods of the specified type.

HRESULT EnumMethods (
    HCORENUM    *phEnum, 
    mdTypeDef   cl, 
    mdMethodDef rMethods[], 
    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.

cl

[in] A TypeDef token representing the type with the methods to enumerate.

rMethods

[out] The array to store the MethodDef tokens.

cMax

[in] The maximum size of the MethodDef rMethods array.

pcTokens

[out] The number of MethodDef tokens returned in rMethods.

Return Value

HRESULT Description

S_OK

EnumMethods returned successfully.

S_FALSE

There are no MethodDef 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