CommandContextBoundMenuCommand Class

 

Represents a menu command that is bound to a specific UI context.

Namespace:   Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

System::Object
  System.ComponentModel.Design::MenuCommand
    Microsoft.VisualStudio.Shell::OleMenuCommand
      Microsoft.VisualStudio.Modeling.Shell::CommandContextBoundMenuCommand

[CLSCompliantAttribute(false)]
public ref class CommandContextBoundMenuCommand : OleMenuCommand

NameDescription
System_CAPS_pubmethodCommandContextBoundMenuCommand(IServiceProvider^, EventHandler^, CommandID^, array<Guid>^)

Initializes a new instance of the CommandContextBoundMenuCommand class.

NameDescription
System_CAPS_pubpropertyChecked

(Inherited from MenuCommand.)

System_CAPS_pubpropertyCommandID

(Inherited from MenuCommand.)

System_CAPS_pubpropertyEnabled

(Inherited from MenuCommand.)

System_CAPS_pubpropertyMatchedCommandId

(Inherited from OleMenuCommand.)

System_CAPS_pubpropertyOleStatus

(Inherited from OleMenuCommand.)

System_CAPS_pubpropertyParametersDescription

(Inherited from OleMenuCommand.)

System_CAPS_pubpropertyProperties

(Inherited from MenuCommand.)

System_CAPS_pubpropertySupported

(Inherited from MenuCommand.)

System_CAPS_pubpropertyText

(Inherited from OleMenuCommand.)

System_CAPS_pubpropertyVisible

(Inherited from MenuCommand.)

NameDescription
System_CAPS_pubmethodDynamicItemMatch(Int32)

(Inherited from OleMenuCommand.)

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInvoke()

(Inherited from MenuCommand.)

System_CAPS_pubmethodInvoke(Object^)

(Inherited from OleMenuCommand.)

System_CAPS_pubmethodInvoke(Object^, IntPtr)

(Inherited from OleMenuCommand.)

System_CAPS_pubmethodInvoke(Object^, IntPtr, OLECMDEXECOPT)

(Inherited from OleMenuCommand.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodOnCommandChanged(EventArgs^)

(Inherited from MenuCommand.)

System_CAPS_pubmethodToString()

(Inherited from MenuCommand.)

NameDescription
System_CAPS_pubeventBeforeQueryStatus

(Inherited from OleMenuCommand.)

System_CAPS_pubeventCommandChanged

(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.

Return to top
Show: