Menu.SetItemDataItem Method (MenuItem, Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

protected void SetItemDataItem(
	MenuItem node,
	object dataItem
)

Parameters

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

The MenuItem to set.

dataItem
Type: System.Object

The data item for the MenuItem.

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

.NET Framework
Available since 2.0
Return to top
Show: