System.Web.UI.WebControls.Menu.FindItem Method

Retrieves the menu item at the specified value path.

Syntax

public MenuItem FindItem (string valuePath)

Parameters

valuePath
The value path to the menu item to retrieve.

Returns

A System.Web.UI.WebControls.MenuItem that represents the menu item at the specified value path.

Remarks

Use the Menu.FindItem(string) method to retrieve a System.Web.UI.WebControls.MenuItem object from the System.Web.UI.WebControls.Menu control. To retrieve the System.Web.UI.WebControls.MenuItem object, you must specify a menu path to the menu item. The menu path is a string of delimited values that form the path from a root menu item to the current menu item. To determine the delimiter character, use the Menu.PathSeparator property.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0