共用方式為


IMonitorSelectionService.CommandContextChanged 事件

當您啟動或停用命令的 UI 內容時,就會發生。

命名空間:  Microsoft.VisualStudio.Modeling.Shell
組件:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)

語法

'宣告
Event CommandContextChanged As EventHandler(Of CommandContextChangedEventArgs)
event EventHandler<CommandContextChangedEventArgs> CommandContextChanged

.NET Framework 安全性

請參閱

參考

IMonitorSelectionService 介面

Microsoft.VisualStudio.Modeling.Shell 命名空間