IMetaDataImport::EnumFields Method
Enumerates FieldDef tokens for the type referenced by the specified TypeDef token.
Syntax
HRESULT EnumFields (
[in, out] HCORENUM *phEnum,
[in] mdTypeDef cl,
[out] mdFieldDef rFields[],
[in] ULONG cMax,
[out] ULONG *pcTokens
);
Parameters
phEnum
[in, out] A pointer to the enumerator.
cl
[in] The TypeDef token of the class whose fields are to be enumerated.
rFields
[out] The list of FieldDef tokens.
cMax
[in] The maximum size of the rFields
array.
pcTokens
[out] The actual number of FieldDef tokens returned in rFields
.
Return Value
HRESULT | Description |
---|---|
S_OK |
EnumFields returned successfully. |
S_FALSE |
There are no fields to enumerate. In that case, pcTokens is zero. |
Requirements
Platforms: See System Requirements.
Header: Cor.h
Library: Included as a resource in MsCorEE.dll
.NET Framework Versions: Available since 1.0
See also
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา