Bewerken

Share via


IMenuCommandService.RemoveCommand(MenuCommand) Method

Definition

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.

Applies to

See also