MenuItemCollection.CopyTo Method
Copies the entire collection into a one-dimensional array starting at the specified index.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub CopyTo ( _
array As MenuItem(), _
index As Integer _
)
'Usage
Dim instance As MenuItemCollection
Dim array As MenuItem()
Dim index As Integer
instance.CopyTo(array, index)
public void CopyTo(
MenuItem[] array,
int index
)
Parameters
array
Type: []An array of MenuItem objects to be added to the menu.
index
Type: System.Int32The location in the current collection to add the array of MenuItem objects.