IMetaDataImport::CountEnum Method

 

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

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

hEnum

[in] The handle for the enumerator.

pulCount

[out] The number of elements enumerated.

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

Requirements

Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Versions: Available since 1.0

Show: