Enumerates MemberDef tokens representing members of the specified type.
[in, out] A pointer to the enumerator.
[in] A TypeDef token representing the type whose members are to be enumerated.
[out] The array used to hold the MemberDef tokens.
[in] The maximum size of the rMembers array.
[out] The actual number of MemberDef tokens returned in rMembers.
EnumMembers returned successfully.
There are no MemberDef tokens to enumerate. In that case, pcTokens is zero.
When enumerating collections of members for a class, EnumMembers returns only members defined directly on the class. It does not return any members that the class inherits, even if the class provides an implementation for those inherited members. To enumerate inherited members, the caller must explicitly walk the inheritance chain. Note that the rules for the inheritance chain may vary depending on the language or compiler that emitted the original metadata.
Platforms: See .NET Framework System Requirements.
Library: Included as a resource in MsCorEE.dll
.NET Framework Versions: Available since 1.0