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::EnumParams method

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

Syntax


HRESULT EnumParams(
  [in, out]                                  HCORENUM    *phEnum,
  [in]                                       mdMethodDef tkMethodDef,
  [out, size_is(cMax), length_is(*pcTokens)] mdParamDef  rParams[],
  [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.

tkMethodDef [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

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

 

Requirements

IDL

Rometadataapi.idl

See also

IMetaDataImport

 

 

Show: