IMetaDataImport::EnumFields method (rometadataapi.h)
Enumerates FieldDef tokens for the type referenced by the specified TypeDef token.
Syntax
HRESULT EnumFields(
[in, out] HCORENUM *phEnum,
[in] mdTypeDef tkTypeDef,
[out] mdFieldDef [] rgFields,
[in] ULONG cMax,
[out] ULONG *pcTokens
);
Parameters
[in, out] phEnum
A pointer to the enumerator.
[in] tkTypeDef
The TypeDef token of the class whose fields are to be enumerated.
[out] rgFields
The list of FieldDef tokens.
[in] cMax
The maximum size of the rgFields array.
[out] pcTokens
The actual number of FieldDef tokens returned in rgFields.
Return value
HRESULT | Description |
---|---|
S_OK | EnumFields returned successfully. |
S_FALSE | There are no fields to enumerate. In this case, pcTokens is 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