MenuCommandHelper.AddMenuCommand 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 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
参数
- performHandler
- EventHandler
- queryStatusHandler
- Action<OleMenuCommand>
- commandID
- CommandID
返回
适用于
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
参数
- performHandler
- EventHandler
- queryStatusHandler
- Action<OleMenuCommand>
- commandID
- CommandID
- Enabled
- Boolean
- Visible
- Boolean