Share via


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

Return Value

Type: System.Boolean
true if this collection contains a specified menu item; otherwise, false.

See Also

Reference

HtmlMenuItemCollection Class

HtmlMenuItemCollection Members

Microsoft.SharePoint.Portal.WebControls Namespace