Copies all the items from the System.Web.UI.WebControls.MenuItemCollection object to a compatible one-dimensional Array, starting at the specified index in the target array.
Use the MenuItemCollection.CopyTo(Array, int) method to copy the contents of the current System.Web.UI.WebControls.MenuItemCollection object into the specified zero-based Array. Items are copied starting at the specified index of the target array. With the Array, you can then use array syntax to access the items in the System.Web.UI.WebControls.MenuItemCollection object.
As an alternative, you can also use the MenuItemCollection.GetEnumerator method to create an enumerator that can be used to access the items in the collection.