IMetaDataImport::EnumMemberRefs method (rometadataapi.h)

Enumerates MemberRef tokens representing members of the specified type.

Syntax

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

Parameters

[in, out] phEnum

A pointer to the enumerator.

[in] tkParent

A TypeDef, TypeRef, MethodDef, or ModuleRef token for the type whose members are to be enumerated.

[out] rgMemberRefs

The array used to store MemberRef tokens.

[in] cMax

The maximum size of the rgMemberRefs array.

[out] pcTokens

The actual number of MemberRef tokens returned in rgMemberRefs.

Return value

HRESULT Description
S_OK EnumMemberRefs returned successfully.
S_FALSE There are no MemberRef tokens to enumerate. In this case, pcTokens is 0 (zero).

Requirements

Requirement Value
Target Platform Windows
Header rometadataapi.h

See also

IMetaDataImport