Share via


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)

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.Int32

    The location in the current collection to add the array of MenuItem objects.

See also

Reference

MenuItemCollection class

MenuItemCollection members

Microsoft.SharePoint.WebPartPages namespace