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.
Applies to
See also
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.