Version

Insert Method (IUIHierarchyNodeList)

Inserts an IUIHierarchyNode within the list at a specific index.
Syntax
'Declaration
 
Sub Insert( _
   ByVal index As Integer, _
   ByVal node As IUIHierarchyNode _
) 
void Insert( 
   int index,
   IUIHierarchyNode node
)

Parameters

index
The zero-based index at which the node must be inserted.
node
The node being inserted into the list.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionThrown when index is outside of the range of valid indexes within the list.
System.NotSupportedExceptionThrown when either IsFixedSize or IsReadOnly return True.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also