ContextMenuProvider.Update 方法
引發 UpdateItemStatus 事件,讓功能表項目的可見性和已啟用狀態得以經過重新整理。
命名空間: Microsoft.Windows.Design.Interaction
組件: Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)
語法
'宣告
Public Sub Update ( _
context As EditingContext _
)
public void Update(
EditingContext context
)
public:
void Update(
EditingContext^ context
)
member Update :
context:EditingContext -> unit
public function Update(
context : EditingContext
)
參數
- context
型別:Microsoft.Windows.Design.EditingContext
要在 MenuActionEventArgs 中傳送的 EditingContext。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.Windows.Design.Interaction 命名空間
PrimarySelectionContextMenuProvider