CommandContextBoundMenuCommand Class

Definition

Important

This API is not CLS-compliant.

Represents a menu command bound to a particular UI context. This command will only be visible if the given command UI context is active. These commands should be used in conjunction with entries in the VISIBILITY_SECTION of the CTC file.

public ref class CommandContextBoundMenuCommand : Microsoft::VisualStudio::Shell::OleMenuCommand
[System.CLSCompliant(false)]
public class CommandContextBoundMenuCommand : Microsoft.VisualStudio.Shell.OleMenuCommand
public class CommandContextBoundMenuCommand : Microsoft.VisualStudio.Shell.OleMenuCommand
[<System.CLSCompliant(false)>]
type CommandContextBoundMenuCommand = class
    inherit OleMenuCommand
type CommandContextBoundMenuCommand = class
    inherit OleMenuCommand
Public Class CommandContextBoundMenuCommand
Inherits OleMenuCommand
Inheritance
CommandContextBoundMenuCommand
Attributes

Constructors

CommandContextBoundMenuCommand(IServiceProvider, EventHandler, CommandID, Guid[])

Construct a new CommandContextBoundMenuCommand

Properties

AutomationName (Inherited from OleMenuCommand)
MatchedCommandId

Gets or sets the command ID.

(Inherited from OleMenuCommand)
OleStatus

Gets the OLE command status code for this menu item.

(Inherited from OleMenuCommand)
ParametersDescription

Gets or sets the description of the parameters of the command.

(Inherited from OleMenuCommand)
Text

Gets or sets the text for the command.

(Inherited from OleMenuCommand)

Methods

DynamicItemMatch(Int32)

Allows a dynamic item command to match the subsequent items in its list.

(Inherited from OleMenuCommand)
Invoke(Object)

Executes the command.

(Inherited from OleMenuCommand)
Invoke(Object, IntPtr)

Executes the command.

(Inherited from OleMenuCommand)
Invoke(Object, IntPtr, OLECMDEXECOPT)

Executes the command with execution options.

(Inherited from OleMenuCommand)

Events

BeforeQueryStatus

Called when a client requests the status of the command.

(Inherited from OleMenuCommand)

Applies to