Share via


IMetaDataImport::EnumMemberRefs Method

Enumerates MemberRef tokens representing members of the specified type.

HRESULT EnumMemberRefs (
    HCORENUM    *phEnum, 
        mdToken     tkParent, 
        mdMemberRef rMemberRefs[], 
    ULONG       cMax, 
    ULONG       *pcTokens
);

Parameters

Parameter Description

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

See Also

Reference

IMetaDataImport Interface
IMetaDataImport2 Interface