CommandContextBoundMenuCommand Class
Represents a menu command that is bound to a specific UI context.
This API is not CLS-compliant.
Inheritance Hierarchy
System.Object
System.ComponentModel.Design.MenuCommand
Microsoft.VisualStudio.Shell.OleMenuCommand
Microsoft.VisualStudio.Modeling.Shell.CommandContextBoundMenuCommand
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
Public Class CommandContextBoundMenuCommand _
Inherits OleMenuCommand
[CLSCompliantAttribute(false)]
public class CommandContextBoundMenuCommand : OleMenuCommand
[CLSCompliantAttribute(false)]
public ref class CommandContextBoundMenuCommand : public OleMenuCommand
[<CLSCompliantAttribute(false)>]
type CommandContextBoundMenuCommand =
class
inherit OleMenuCommand
end
public class CommandContextBoundMenuCommand extends OleMenuCommand
The CommandContextBoundMenuCommand type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CommandContextBoundMenuCommand | Initializes a new instance of the CommandContextBoundMenuCommand class. |
Top
Properties
Name | Description | |
---|---|---|
Checked | Gets or sets a value indicating whether this menu item is checked. (Inherited from MenuCommand.) | |
CommandID | Gets the CommandID associated with this menu command. (Inherited from MenuCommand.) | |
Enabled | Gets a value indicating whether this menu item is available. (Inherited from MenuCommand.) | |
MatchedCommandId | (Inherited from OleMenuCommand.) | |
OleStatus | (Inherited from OleMenuCommand.) | |
ParametersDescription | (Inherited from OleMenuCommand.) | |
Properties | Gets the public properties associated with the MenuCommand. (Inherited from MenuCommand.) | |
Supported | Gets or sets a value indicating whether this menu item is supported. (Inherited from MenuCommand.) | |
Text | (Inherited from OleMenuCommand.) | |
Visible | Gets or sets a value indicating whether this menu item is visible. (Inherited from MenuCommand.) |
Top
Methods
Name | Description | |
---|---|---|
DynamicItemMatch | (Inherited from OleMenuCommand.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Invoke() | Invokes the command. (Inherited from MenuCommand.) | |
Invoke(Object) | (Inherited from OleMenuCommand.) | |
Invoke(Object, IntPtr) | (Inherited from OleMenuCommand.) | |
Invoke(Object, IntPtr, OLECMDEXECOPT) | (Inherited from OleMenuCommand.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnCommandChanged | Raises the CommandChanged event. (Inherited from MenuCommand.) | |
ToString | Returns a string representation of this menu command. (Inherited from MenuCommand.) |
Top
Events
Name | Description | |
---|---|---|
BeforeQueryStatus | (Inherited from OleMenuCommand.) | |
CommandChanged | Occurs when the menu command changes. (Inherited from MenuCommand.) |
Top
Remarks
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.