IMetaDataImport::EnumTypeSpecs method (rometadataapi.h)

Enumerates TypeSpec tokens defined in the current metadata scope.

Syntax

HRESULT EnumTypeSpecs(
  [in, out] HCORENUM      *phEnum,
  [out]     mdTypeSpec [] rgTypeSpecs,
  [in]      ULONG         cMax,
  [out]     ULONG         *pcTypeSpecs
);

Parameters

[in, out] phEnum

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

[out] rgTypeSpecs

The array used to store the TypeSpec tokens.

[in] cMax

The maximum size of the rgTypeSpecs array.

[out] pcTypeSpecs

The number of TypeSpec tokens returned in rgTypeSpecs.

Return value

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

Requirements

Requirement Value
Target Platform Windows
Header rometadataapi.h

See also

IMetaDataImport