Export (0) Print
Expand All
Expand Minimize

IMetaDataImport::EnumModuleRefs Method

Enumerates ModuleRef tokens that represent imported modules.

HRESULT EnumModuleRefs (
   [in, out] HCORENUM     *phEnum,
   [out]     mdModuleRef  rModuleRefs[],
   [in]      ULONG        cMax,
   [out]     ULONG        *pcModuleRefs
);

phEnum

[in, out] A pointer to the enumerator. This must be NULL for the first call of this method.

rModuleRefs

[out] The array used to store the ModuleRef tokens.

cMax

[in] The maximum size of the rModuleRefs array.

pcModuleRefs

[out] The number of ModuleRef tokens returned in rModuleRefs.

HRESULT

Description

S_OK

EnumModuleRefs returned successfully.

S_FALSE

There are no tokens to enumerate. In that case, pcModuleRefs is zero.

Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Versions: 4.6 RC, 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

Show:
© 2015 Microsoft