Freigeben über


IMetaDataImport::EnumParams Method

Enumerates ParamDef tokens representing the parameters of the method referenced by the specified MethodDef token.

HRESULT EnumParams (
    HCORENUM    *phEnum,
    mdMethodDef mb,
    mdParamDef  rParams[],
    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.

mb

[in] A MethodDef token representing the method with the parameters to enumerate.

rParams

[out] The array used to store the ParamDef tokens.

cMax

[in] The maximum size of the rParams array.

pcTokens

[out] The number of ParamDef tokens returned in rParams.

Return Value

HRESULT Description

S_OK

EnumParams returned successfully.

S_FALSE

There are no tokens to enumerate. In that case, pcTokens is zero.

Requirements

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

Header: Cor.h

Library: Used as a resource in Mscoree.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

IMetaDataImport Interface
IMetaDataImport2 Interface