MenuItemCollection.Contains Method
Determines if the specified MenuItem is a member of the collection.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Function Contains ( _
menuItem As MenuItem _
) As Boolean
'Usage
Dim instance As MenuItemCollection
Dim menuItem As MenuItem
Dim returnValue As Boolean
returnValue = instance.Contains(menuItem)
public bool Contains(
MenuItem menuItem
)
Parameters
menuItem
Type: Microsoft.SharePoint.WebPartPages.MenuItemThe MenuItem object that you are searching for in the collection.
Return Value
Type: System.Boolean
true if the MenuItem object is found in the collection; otherwise, false.