Delen via


ModelExplorerTreeContainer.InsertNode Method

Insert childNode as a new child of parentNode. If parentNode is null, then insert a new root. This is the correct way to insert a new node into the tree maintaining its internal state, in particular the element to node mapping.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Syntax

'Declaration
Public Sub InsertNode ( _
    parentNode As ExplorerTreeNode, _
    childNode As ExplorerTreeNode _
)
public void InsertNode(
    ExplorerTreeNode parentNode,
    ExplorerTreeNode childNode
)
public:
void InsertNode(
    ExplorerTreeNode^ parentNode, 
    ExplorerTreeNode^ childNode
)
member InsertNode : 
        parentNode:ExplorerTreeNode * 
        childNode:ExplorerTreeNode -> unit
public function InsertNode(
    parentNode : ExplorerTreeNode, 
    childNode : ExplorerTreeNode
)

Parameters

.NET Framework Security

See Also

Reference

ModelExplorerTreeContainer Class

Microsoft.VisualStudio.Modeling.Shell Namespace