Rediger

Del via


TreeView.SetNodeDataItem(TreeNode, Object) Method

Definition

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

protected:
 void SetNodeDataItem(System::Web::UI::WebControls::TreeNode ^ node, System::Object ^ dataItem);
protected void SetNodeDataItem (System.Web.UI.WebControls.TreeNode node, object dataItem);
member this.SetNodeDataItem : System.Web.UI.WebControls.TreeNode * obj -> unit
Protected Sub SetNodeDataItem (node As TreeNode, dataItem As Object)

Parameters

node
TreeNode

The TreeNode to set.

dataItem
Object

The data item for the TreeNode.

Remarks

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

Applies to

See also