Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMetaDataImport2::EnumGenericParamConstraints method

Gets an enumerator for an array of generic parameter constraints associated with the generic parameter represented by the specified token.

Syntax


HRESULT EnumGenericParamConstraints(
  [in, out]                                                   HCORENUM                 *phEnum,
  [in]                                                        mdGenericParam           tk,
  [out, size_is(cMax), length_is(*pcGenericParamConstraints)] 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

HRESULTDescription
S_OKEnumGenericParamConstraints returned successfully.
S_FALSEphEnum has no member elements. In this case, pcGenericParameterConstraints is set to 0 (zero).

 

Requirements

IDL

Rometadataapi.idl

See also

IMetaDataImport2

 

 

Show: