Share via


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

Return Value

Type: System.Boolean
true if the MenuItem object is found in the collection; otherwise, false.

See Also

Reference

MenuItemCollection Class

MenuItemCollection Members

Microsoft.SharePoint.WebPartPages Namespace