Export (0) Print
Expand All

IMetaDataImport2::EnumGenericParams Method

Gets an enumerator for an array of generic parameter tokens associated with the specified TypeDef or MethodDef token.

HRESULT EnumGenericParams (
   [in, out] HCORENUM     *phEnum, 
   [in]  mdToken          tk,
   [out] mdGenericParam   rGenericParams[], 
   [in]  ULONG            cMax, 
   [out] ULONG            *pcGenericParams
);

phEnum

[in, out] A pointer to the enumerator.

tk

[in] The TypeDef or MethodDef token whose generic parameters are to be enumerated.

rGenericParams

[out] The array of generic parameters to enumerate.

cMax

[in] The requested maximum number of tokens to place in rGenericParams.

pcGenericParams

[out] The returned number of tokens placed in rGenericParams.

HRESULT

Description

S_OK

EnumGenericParams returned successfully.

S_FALSE

phEnum has no member elements. In this case, pcGenericParams is set to 0 (zero).

Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Used as a resource in MsCorEE.dll

.NET Framework Versions: 4.6 Preview, 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

Show:
© 2015 Microsoft