HtmlMenuItemCollection.Contains Method
Determines whether this collection contains a specified menu item.
Namespace: Microsoft.SharePoint.Portal.WebControls
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
Public Function Contains ( _
objItem As HtmlMenuItem _
) As Boolean
'Usage
Dim instance As HtmlMenuItemCollection
Dim objItem As HtmlMenuItem
Dim returnValue As Boolean
returnValue = instance.Contains(objItem)
public bool Contains(
HtmlMenuItem objItem
)
Parameters
- objItem
Type: Microsoft.SharePoint.Portal.WebControls.HtmlMenuItem
Object that contains the menu item.
Return Value
Type: System.Boolean
true if this collection contains a specified menu item; otherwise, false.