הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
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 |