IMetaDataImport::EnumTypeRefs method (rometadataapi.h)

Enumerates TypeRef tokens defined in the current metadata scope.

Syntax

HRESULT EnumTypeRefs(
  HCORENUM     *phEnum,
  mdTypeRef [] rgTypeRefs,
  ULONG        cMax,
  ULONG        *pcTypeRefs
);

Parameters

phEnum

A pointer to the enumerator. This must be NULL for the first call of this method.

rgTypeRefs

The array used to store the TypeRef tokens.

cMax

The maximum size of the rgTypeRefs array.

pcTypeRefs

A pointer to the number of TypeRef tokens returned in rgTypeRefs.

Return value

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

Requirements

   
Target Platform Windows
Header rometadataapi.h

See also

IMetaDataImport