편집

다음을 통해 공유


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, System::Object ^ dataItem);
protected void SetItemDataItem (System.Web.UI.WebControls.MenuItem node, object dataItem);
member this.SetItemDataItem : System.Web.UI.WebControls.MenuItem * obj -> unit
Protected Sub SetItemDataItem (node As MenuItem, dataItem As Object)

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