Share via


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: See .NET Framework System Requirements.

Header: Cor.h

Library: Used as a resource in MsCorEE.dll

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

See Also

Reference

IMetaDataImport2 Interface

IMetaDataImport Interface