MenuItemCollection.ItemFromID Method
Returns a MenuItem in a collection, and all subcollections with an ID matching the parameter.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Function ItemFromID ( _
menuItemID As String _
) As MenuItem
'Usage
Dim instance As MenuItemCollection
Dim menuItemID As String
Dim returnValue As MenuItem
returnValue = instance.ItemFromID(menuItemID)
public MenuItem ItemFromID(
string menuItemID
)
Parameters
menuItemID
Type: System.StringThe unique identifier of the menu item.
Return Value
Type: Microsoft.SharePoint.WebPartPages.MenuItem
A MenuItem object with the specified ID. Returns a null reference (Nothing in Visual Basic) if a MenuItem does not exist.