Share via


MenuItemCollection.AddRange method

Adds an array of previously created MenuItem objects to the collection.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub AddRange ( _
    menuItemsToAdd As MenuItem() _
)
'Usage
Dim instance As MenuItemCollection
Dim menuItemsToAdd As MenuItem()

instance.AddRange(menuItemsToAdd)
public void AddRange(
    MenuItem[] menuItemsToAdd
)

Parameters

  • menuItemsToAdd
    Type: []

    An array of MenuItem objects to be added to the end of the current collection.

See also

Reference

MenuItemCollection class

MenuItemCollection members

Microsoft.SharePoint.WebPartPages namespace