Windows apps
Collapse the table of content
Expand the table of content
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::GetGenericParamConstraintProps method

Gets the metadata associated with the generic parameter constraint represented by the specified constraint token.

Syntax


HRESULT GetGenericParamConstraintProps(
  [in]  mdGenericParamConstraint gpc,
  [out] mdGenericParam           *ptGenericParam,
  [out] mdToken                  *ptkConstraintType
);

Parameters

gpc [in]

The token to the generic parameter constraint for which to return the metadata.

ptGenericParam [out]

A pointer to the token that represents the generic parameter that is constrained.

ptkConstraintType [out]

A pointer to a TypeDef, TypeRef, or TypeSpec token that represents a constraint on ptGenericParam.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

IDL

Rometadataapi.idl

See also

IMetaDataImport2

 

 

Show:
© 2017 Microsoft