Initializes a new instance of the Menu.MenuItemCollection class.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
This class requires that you associate the collection with a class that derives from Menu, such as the MainMenu, ContextMenu, or MenuItem class. Since you must specify a menu that is associated with this collection, you cannot create multiple menu item collections and associate them with a menu as needed. In order to switch the menu items associated with a menu, you must clear the collection of items and add the menu items to display to the collection.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)