這個 API 支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。
會在內容項目儲存至內容項目管理員之前,先對這個項目來呼叫。
命名空間: Microsoft.Windows.Design
組件: Microsoft.Windows.Design.Extensibility (在 Microsoft.Windows.Design.Extensibility.dll 中)
語法
'宣告
Protected Overrides Sub OnItemChanged ( _
context As EditingContext, _
previousItem As ContextItem _
)
protected override void OnItemChanged(
EditingContext context,
ContextItem previousItem
)
protected:
virtual void OnItemChanged(
EditingContext^ context,
ContextItem^ previousItem
) override
abstract OnItemChanged :
context:EditingContext *
previousItem:ContextItem -> unit
override OnItemChanged :
context:EditingContext *
previousItem:ContextItem -> unit
protected override function OnItemChanged(
context : EditingContext,
previousItem : ContextItem
)
參數
- context
型別:Microsoft.Windows.Design.EditingContext
目前接收這個 AssemblyReferences 物件的編輯內容。
- previousItem
型別:Microsoft.Windows.Design.ContextItem
現有的 AssemblyReferences 物件。
備註
這個方法會覆寫 OnItemChanged,如此 AssemblyReferences 即可將現有參考合併至這個物件中。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。