Parameters
- name
- The descriptive name of the menu to remove
Return Value
True if the remove was successful, false if the menu name could not be found or an error occurred
Exception | Description |
---|---|
ArgumentNullException | If the name passed is null |
ArgumentException | If the name passed corresponds to the default menu, which cannot be deleted. This can be represented by an empty string, or the ContextMenu.DefaultMenuName constant |
InvalidOperationException | If the ContextMenus object is not available or in an error state |