Menu.SetItemDataItem(MenuItem, Object) Method

Definition

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

protected void SetItemDataItem(System.Web.UI.WebControls.MenuItem node, object dataItem);

Parameters

node
MenuItem

The MenuItem to set.

dataItem
Object

The data item for the MenuItem.

Remarks

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

Applies to

See also