IMenuCommandService.RemoveCommand(MenuCommand) 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.
Removes the specified standard menu command from the menu.
public:
void RemoveCommand(System::ComponentModel::Design::MenuCommand ^ command);
public void RemoveCommand (System.ComponentModel.Design.MenuCommand command);
abstract member RemoveCommand : System.ComponentModel.Design.MenuCommand -> unit
Public Sub RemoveCommand (command As MenuCommand)
Parameters
- command
- MenuCommand
The MenuCommand to remove.
Remarks
This method removes the specified MenuCommand if it is found. This method does not raise an exception or return a value if the specified MenuCommand is not found. Use the FindCommand method to determine whether a MenuCommand matching a specified CommandID is located on a menu.