IMetaDataEmit::SetPropertyProps 方法
設定由先前呼叫 DefineProperty 方法所定義之屬性的中繼資料中所儲存的功能。
語法
HRESULT SetPropertyProps (
[in] mdProperty pr,
[in] DWORD dwPropFlags,
[in] DWORD dwCPlusTypeFlag,
[in] void const *pValue,
[in] ULONG cchValue,
[in] mdMethodDef mdSetter,
[in] mdMethodDef mdGetter,
[in] mdMethodDef rmdOtherMethods[]
);
參數
pr
[in] 要變更之屬性的語彙基元
dwPropFlags
[in] 屬性旗標。
dwCPlusTypeFlag
[in] 屬性的預設值類型。
pValue
[in] 屬性的預設值。
cchValue
[in] pValue
中的 (Unicode) 字元計數。
mdSetter
[in] 設定屬性值的方法。
mdGetter
[in] 取得屬性值的方法。
rmdOtherMethods[]
[in] 與屬性相關聯的其他方法陣列。 可使用 mdTokenNil
語彙基元終止此陣列。
規格需求
平台:請參閱系統需求。
標頭:Cor.h
程式庫:作為 MSCorEE.dll 中的資源使用
.NET Framework版本:自 1.0 起提供