Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
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 |