共用方式為


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 介面