SetNodeDataItem Method

TreeView.SetNodeDataItem Method (TreeNode, Object)

 

Allows a derived class to set the data item for the specified TreeNode control.

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

protected void SetNodeDataItem(
	TreeNode node,
	object dataItem
)

Parameters

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

The TreeNode to set.

dataItem
Type: System.Object

The data item for the TreeNode.

Use the SetNodeDataItem method to specify the data item for the specified TreeNode control.

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