IMetaDataImport2::GetGenericParamConstraintProps 方法

获取与指定的约束标记表示的泛型参数约束关联的元数据。

语法

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

参数

gpc
[in] 要为其返回元数据的泛型参数约束的标记。

ptGenericParam
[out] 指向表示受约束的泛型参数的标记的指针。

ptkConstraintType
[out] 指向表示受 ptGenericParam 约束的 TypeDef、TypeRef 或 TypeSpec 标记的指针。

要求

平台:请参阅系统要求

标头:Cor.h

库:用作 MsCorEE.dll 中的资源

.NET Framework 版本:自 2.0 起可用

另请参阅