IMetaDataEmit::SetCustomAttributeValue 方法

设置或更新以前调用 IMetaDataEmit::DefineCustomAttribute 时定义的自定义特性的值。

HRESULT SetCustomAttributeValue ( 
    [in]  mdCustomAttribute       pcv, 
    [in]  void const              *pCustomAttribute,  
    [in]  ULONG                   cbCustomAttribute 
);

参数

  • pcv
    [in] 目标自定义特性的标记。

  • pCustomAttribute
    [in] 一个指向包含自定义特性的数组的指针。

  • cbCustomAttribute
    [in] 自定义特性的大小(以字节为单位)。

要求

**平台:**请参见 .NET Framework 系统要求

**头文件:**Cor.h

**库:**在 MSCorEE.dll 中用作资源

**.NET Framework 版本:**4、3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0、1.1、1.0

请参见

参考

IMetaDataEmit 接口

IMetaDataEmit2 接口