IMetaDataImport::EnumMemberRefs Method
Enumerates MemberRef tokens representing members of the specified type.
HRESULT EnumMemberRefs (
[in, out] HCORENUM *phEnum,
[in] mdToken tkParent,
[out] mdMemberRef rMemberRefs[],
[in] ULONG cMax,
[out] ULONG *pcTokens
);
Parameters
phEnum
[in, out] A pointer to the enumerator.tkParent
[in] A TypeDef, TypeRef, MethodDef, or ModuleRef token for the type whose members are to be enumerated.rMemberRefs
[out] The array used to store MemberRef tokens.cMax
[in] The maximum size of the rMemberRefs array.pcTokens
[out] The actual number of MemberRef tokens returned in rMemberRefs.
Return Value
HRESULT |
Description |
---|---|
S_OK |
EnumMemberRefs returned successfully. |
S_FALSE |
There are no MemberRef tokens to enumerate. In that case, pcTokens is to zero. |
Requirements
Platforms: Windows 2000, Windows XP, Windows Server 2003 family
Header: Cor.h
Library: Included as a resource in MsCorEE.dll
.NET Framework Version: 2.0, 1.1, 1.0