MenuItemCollection.Remove Method
Deletes the first instance of the specified MenuItem from the collection.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub Remove ( _
menuItem As MenuItem _
)
'Usage
Dim instance As MenuItemCollection
Dim menuItem As MenuItem
instance.Remove(menuItem)
public void Remove(
MenuItem menuItem
)
Parameters
menuItem
Type: Microsoft.SharePoint.WebPartPages.MenuItemA MenuItem object that is to be removed.