Freigeben über


IMetaDataImport2::EnumGenericParams Method

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

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

Parameters

Parameter Description

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.

Return Value

HRESULT Description

S_OK

EnumGenericParams returned successfully.

S_FALSE

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

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: Cor.h

Library: Used as a resource in Mscoree.dll

.NET Framework Version: 2.0

See Also

Reference

IMetaDataImport2 Interface
IMetaDataImport Interface