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

Gets the number of elements in the enumeration that was retrieved by the specified enumerator.

Syntax


HRESULT CountEnum(
  [in]          HCORENUM hEnum,
  [out, retval] ULONG    *pulCount
);

Parameters

hEnum [in]

The handle for the enumerator.

pulCount [out, retval]

The number of elements enumerated.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The handle specified by hEnum is obtained from a previous EnumName call (for example, IMetaDataImport::EnumTypeDefs).

Requirements

IDL

Rometadataapi.idl

See also

IMetaDataImport

 

 

Show: