Occurs when the command UI context is activated or deactivated.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Event CommandContextChanged As EventHandler(Of CommandContextChangedEventArgs)
'使用
Dim instance As IMonitorSelectionService
Dim handler As EventHandler(Of CommandContextChangedEventArgs)
AddHandler instance.CommandContextChanged, handler
event EventHandler<CommandContextChangedEventArgs> CommandContextChanged
event EventHandler<CommandContextChangedEventArgs^>^ CommandContextChanged {
void add (EventHandler<CommandContextChangedEventArgs^>^ value);
void remove (EventHandler<CommandContextChangedEventArgs^>^ value);
}
JScript does not support events.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IMonitorSelectionService Interface