共用方式為


IMetaDataEmit::SetCustomAttributeValue 方法

設定或更新由先前呼叫 IMetaDataEmit::DefineCustomAttribute 所定義的自訂屬性值。

語法

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

參數

pcv
[in] 目標自訂屬性的語彙基元。

pCustomAttribute
[in] 包含自訂屬性之陣列的指標。

cbCustomAttribute
[in] 自訂屬性的大小,以位元組為單位。

規格需求

平台:請參閱系統需求

標頭:Cor.h

程式庫:作為 MSCorEE.dll 中的資源使用

.NET Framework版本:自 1.0 起提供

另請參閱