System.ComponentModel.Design.IMenuCommandService.RemoveCommand Method

Removes the specified standard menu command from the menu.

Syntax

public void RemoveCommand (MenuCommand command)

Parameters

command
The System.ComponentModel.Design.MenuCommand to remove.

Remarks

This method removes the specified System.ComponentModel.Design.MenuCommand if it is found. This method does not raise an exception or return a value if the specified System.ComponentModel.Design.MenuCommand is not found. Use the IMenuCommandService.FindCommand(CommandID) method to determine whether a System.ComponentModel.Design.MenuCommand matching a specified System.ComponentModel.Design.CommandID is located on a menu.

Requirements

Namespace: System.ComponentModel.Design
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0