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::EnumTypeRefs method

Enumerates TypeRef tokens defined in the current metadata scope.

Syntax


HRESULT EnumTypeRefs(
  [in, out]                                    HCORENUM  *phEnum,
  [out, size_is(cMax), length_is(*pcTypeRefs)] mdTypeRef rgTypeRefs[],
  [in]                                         ULONG     cMax,
  [out, retval]                                ULONG     *pcTypeRefs
);

Parameters

phEnum [in, out]

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

rgTypeRefs [out]

The array used to store the TypeRef tokens.

cMax [in]

The maximum size of the rgTypeRefs array.

pcTypeRefs [out, retval]

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

Return value

HRESULTDescription
S_OKEnumTypeRefs returned successfully.
S_FALSEThere are no tokens to enumerate. In this case, pcTypeRefs is 0 (zero).

 

Requirements

IDL

Rometadataapi.idl

See also

IMetaDataImport

 

 

Show: