IMetaDataImport2::EnumGenericParamConstraints Method
Gets an enumerator for an array of generic parameter constraints associated with the generic parameter represented by the specified token.
HRESULT EnumGenericParamConstraints (
[in, out] HCORENUM *phEnum,
[in] mdGenericParam tk,
[out] mdGenericParamConstraint rGenericParamConstraints[],
[in] ULONG cMax,
[out] ULONG *pcGenericParamConstraints
);
Parameters
phEnum
[in, out] A pointer to the enumerator.tk
[in] A token that represents the generic parameter whose constraints are to be enumerated.rGenericParamConstraints
[out] The array of generic parameter constraints to enumerate.cMax
[in] The requested maximum number of tokens to place in rGenericParamConstraints.pcGenericParamConstraints
[out] A pointer to the number of tokens placed in rGenericParamConstraints.
Return Value
HRESULT |
Description |
---|---|
S_OK |
EnumGenericParameterConstraints returned successfully. |
S_FALSE |
phEnum has no member elements. In this case, pcGenericParameterConstraints 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