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)
Available in Sandboxed Solutions: No

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