Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMetaDataImport::EnumMemberRefs method

Enumerates MemberRef tokens representing members of the specified type.

Syntax


HRESULT EnumMemberRefs(
  [in, out]                                  HCORENUM    *phEnum,
  [in]                                       mdToken     tkParent,
  [out, size_is(cMax), length_is(*pcTokens)] mdMemberRef rgMemberRefs[],
  [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.

rgMemberRefs [out]

The array used to store MemberRef tokens.

cMax [in]

The maximum size of the rgMemberRefs array.

pcTokens [out]

The actual number of MemberRef tokens returned in rgMemberRefs.

Return value

HRESULTDescription
S_OKEnumMemberRefs returned successfully.
S_FALSEThere are no MemberRef tokens to enumerate. In this case, pcTokens is 0 (zero).

 

Requirements

IDL

Rometadataapi.idl

See also

IMetaDataImport

 

 

Show:
© 2017 Microsoft