MenuCommandHelper.AddMenuCommand Method

Definition

Overloads

AddMenuCommand(EventHandler, Action<OleMenuCommand>, CommandID)
AddMenuCommand(EventHandler, Action<OleMenuCommand>, CommandID, Boolean, Boolean)

AddMenuCommand(EventHandler, Action<OleMenuCommand>, CommandID)

public:
 Microsoft::VisualStudio::Shell::OleMenuCommand ^ AddMenuCommand(EventHandler ^ performHandler, Action<Microsoft::VisualStudio::Shell::OleMenuCommand ^> ^ queryStatusHandler, System::ComponentModel::Design::CommandID ^ commandID);
public Microsoft.VisualStudio.Shell.OleMenuCommand AddMenuCommand (EventHandler performHandler, Action<Microsoft.VisualStudio.Shell.OleMenuCommand> queryStatusHandler, System.ComponentModel.Design.CommandID commandID);
member this.AddMenuCommand : EventHandler * Action<Microsoft.VisualStudio.Shell.OleMenuCommand> * System.ComponentModel.Design.CommandID -> Microsoft.VisualStudio.Shell.OleMenuCommand
Public Function AddMenuCommand (performHandler As EventHandler, queryStatusHandler As Action(Of OleMenuCommand), commandID As CommandID) As OleMenuCommand

Parameters

performHandler
EventHandler
queryStatusHandler
Action<OleMenuCommand>
commandID
CommandID

Returns

OleMenuCommand

Applies to

AddMenuCommand(EventHandler, Action<OleMenuCommand>, CommandID, Boolean, Boolean)

public:
 Microsoft::VisualStudio::Shell::OleMenuCommand ^ AddMenuCommand(EventHandler ^ performHandler, Action<Microsoft::VisualStudio::Shell::OleMenuCommand ^> ^ queryStatusHandler, System::ComponentModel::Design::CommandID ^ commandID, bool Enabled, bool Visible);
public Microsoft.VisualStudio.Shell.OleMenuCommand AddMenuCommand (EventHandler performHandler, Action<Microsoft.VisualStudio.Shell.OleMenuCommand> queryStatusHandler, System.ComponentModel.Design.CommandID commandID, bool Enabled, bool Visible);
member this.AddMenuCommand : EventHandler * Action<Microsoft.VisualStudio.Shell.OleMenuCommand> * System.ComponentModel.Design.CommandID * bool * bool -> Microsoft.VisualStudio.Shell.OleMenuCommand
Public Function AddMenuCommand (performHandler As EventHandler, queryStatusHandler As Action(Of OleMenuCommand), commandID As CommandID, Enabled As Boolean, Visible As Boolean) As OleMenuCommand

Parameters

performHandler
EventHandler
queryStatusHandler
Action<OleMenuCommand>
commandID
CommandID
Enabled
Boolean
Visible
Boolean

Returns

OleMenuCommand

Applies to