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.

IMetaDataImport2::EnumMethodSpecs method

Gets an enumerator for an array of MethodSpec tokens associated with the specified MethodDef or MemberRef token.

Syntax


HRESULT EnumMethodSpecs(
  [in, out]                                       HCORENUM     *phEnum,
  [in]                                            mdToken      tk,
  [out, size_is(cMax), length_is(*pcMethodSpecs)] mdMethodSpec rMethodSpecs[],
  [in]                                            ULONG        cMax,
  [out]                                           ULONG        *pcMethodSpecs
);

Parameters

phEnum [in, out]

pointer to the enumerator for rMethodSpecs.

tk [in]

The MemberRef or MethodDef token that represents the method whose MethodSpec tokens are to be enumerated. If the value of tk is 0 (zero), all MethodSpec tokens in the scope will be enumerated.

rMethodSpecs [out]

The array of MethodSpec tokens to enumerate.

cMax [in]

The requested maximum number of tokens to place in rMethodSpecs.

pcMethodSpecs [out]

The returned number of tokens placed in rMethodSpecs.

Return value

HRESULTDescription
S_OKEnumMethodSpecs returned successfully.
S_FALSEphEnum has no member elements. In this case, pcMethodSpecs is set to 0 (zero).

 

Requirements

IDL

Rometadataapi.idl

See also

IMetaDataImport2

 

 

Show:
© 2017 Microsoft