Windows apps
Collapse the table of content
Expand the table of content
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::EnumMethods method

Enumerates MethodDef tokens representing methods of the specified type.

Syntax


HRESULT EnumMethods(
  [in, out]                                  HCORENUM    *phEnum,
  [in]                                       mdTypeDef   tkTypeDef,
  [out, size_is(cMax), length_is(*pcTokens)] mdMethodDef rgMethods[],
  [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 representing the type with the methods to enumerate.

rgMethods [out]

The array to store the MethodDef tokens.

cMax [in]

The maximum size of the MethodDef rgMethods array.

pcTokens [out]

The number of MethodDef tokens returned in rgMethods.

Return value

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

 

Requirements

IDL

Rometadataapi.idl

See also

IMetaDataImport

 

 

Show:
© 2017 Microsoft