Nota
Capaian ke halaman ini memerlukan kebenaran. Anda boleh cuba mendaftar masuk atau menukar direktori.
Capaian ke halaman ini memerlukan kebenaran. Anda boleh cuba menukar direktori.
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
[in] gpc
The token to the generic parameter constraint for which to return the metadata.
[out] ptGenericParam
A pointer to the token that represents the generic parameter that is constrained.
[out] ptkConstraintType
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
| Requirement | Value |
|---|---|
| Target Platform | Windows |
| Header | rometadataapi.h |