CommandContextBoundMenuCommand Class
Represents a menu command that is bound to a specific UI context.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
System.ComponentModel.Design::MenuCommand
Microsoft.VisualStudio.Shell::OleMenuCommand
Microsoft.VisualStudio.Modeling.Shell::CommandContextBoundMenuCommand
| Name | Description | |
|---|---|---|
![]() | CommandContextBoundMenuCommand(IServiceProvider^, EventHandler^, CommandID^, array<Guid>^) | Initializes a new instance of the CommandContextBoundMenuCommand class. |
| Name | Description | |
|---|---|---|
![]() | Checked | (Inherited from MenuCommand.) |
![]() | CommandID | (Inherited from MenuCommand.) |
![]() | Enabled | (Inherited from MenuCommand.) |
![]() | MatchedCommandId | (Inherited from OleMenuCommand.) |
![]() | OleStatus | (Inherited from OleMenuCommand.) |
![]() | ParametersDescription | (Inherited from OleMenuCommand.) |
![]() | Properties | (Inherited from MenuCommand.) |
![]() | Supported | (Inherited from MenuCommand.) |
![]() | Text | (Inherited from OleMenuCommand.) |
![]() | Visible | (Inherited from MenuCommand.) |
| Name | Description | |
|---|---|---|
![]() | DynamicItemMatch(Int32) | (Inherited from OleMenuCommand.) |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | Invoke() | (Inherited from MenuCommand.) |
![]() | Invoke(Object^) | (Inherited from OleMenuCommand.) |
![]() | Invoke(Object^, IntPtr) | (Inherited from OleMenuCommand.) |
![]() | Invoke(Object^, IntPtr, OLECMDEXECOPT) | (Inherited from OleMenuCommand.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | OnCommandChanged(EventArgs^) | (Inherited from MenuCommand.) |
![]() | ToString() | (Inherited from MenuCommand.) |
| Name | Description | |
|---|---|---|
![]() | BeforeQueryStatus | (Inherited from OleMenuCommand.) |
![]() | CommandChanged | (Inherited from MenuCommand.) |
The command is visible only when its UI context is active.
You should use the command with entries in the VISIBILITY_SECTION of the Commands.vstc file. In the Domain-Specific Language Designer, you can find the Commands.vstc file under the DslPackage node.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



