SetItemDataPath Method

Menu.SetItemDataPath Method (MenuItem, String)

 

Sets the DataPath property of the specified MenuItem object with the specified value.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

protected void SetItemDataPath(
	MenuItem node,
	string dataPath
)

Parameters

node
Type: System.Web.UI.WebControls.MenuItem

The MenuItem to set.

dataPath
Type: System.String

The data path for the MenuItem.

The SetItemDataPath method is a helper method used by derived classes to set the DataPath property of the specified MenuItem object.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft