MenuCommandHelper.AddMenuCommand Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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