Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- parentNode
 Type: Microsoft.VisualStudio.Modeling.Shell.ExplorerTreeNode
- childNode
 Type: Microsoft.VisualStudio.Modeling.Shell.ExplorerTreeNode
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.