IMetaDataImport2::EnumMethodSpecs method (rometadataapi.h)
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] mdMethodSpec [] rMethodSpecs,
[in] ULONG cMax,
[out] ULONG *pcMethodSpecs
);
Parameters
[in, out] phEnum
pointer to the enumerator for rMethodSpecs.
[in] tk
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.
[out] rMethodSpecs
The array of MethodSpec tokens to enumerate.
[in] cMax
The requested maximum number of tokens to place in rMethodSpecs.
[out] pcMethodSpecs
The returned number of tokens placed in rMethodSpecs.
Return value
HRESULT | Description |
---|---|
S_OK | EnumMethodSpecs returned successfully. |
S_FALSE | phEnum has no member elements. In this case, pcMethodSpecs is set to 0 (zero). |
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | rometadataapi.h |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for