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: See .NET Framework System Requirements.
Header: Cor.h
Library: Included as a resource in MsCorEE.dll
.NET Framework Versions: 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0