Export (0) Print
Expand All
Expand Minimize

IMetaDataImport::EnumTypeRefs Method

Enumerates TypeRef tokens defined in the current metadata scope.

HRESULT EnumTypeRefs (
   [in, out] HCORENUM    *phEnum, 
   [out] mdTypeRef       rTypeRefs[],
   [in]  ULONG           cMax, 
   [out] ULONG           *pcTypeRefs
);

phEnum

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

rTypeRefs

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

cMax

[in] The maximum size of the rTypeRefs array.

pcTypeRefs

[out] A pointer to the number of TypeRef tokens returned in rTypeRefs.

HRESULT

Description

S_OK

EnumTypeRefs returned successfully.

S_FALSE

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

A TypeRef token represents a reference to a type.

Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Versions: 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

Show:
© 2014 Microsoft