Version

CopyTo Method (IUIHierarchyNodeList)

Copies the IUIHierarchyNode instances within the current collection to an Array starting at a particular index.
Syntax
'Declaration
 
Sub CopyTo( _
   ByVal array As Array, _
   ByVal index As Integer _
) 
void CopyTo( 
   Array array,
   int index
)

Parameters

array
A one-dimensional Array that receives the IUIHierarchyNode instances within this collection.
index
The zero-based index into which copying begins.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThrown when array is the null reference (Nothing in Visual Basic .NET).
System.ArgumentOutOfRangeExceptionThrown when index is less than zero.
System.ArgumentExceptionThrown when array has more than one-dimension, index exceeds the capacity of array, or Count (the number of IUIHierarchyNode instances contained) is greater than the available space in array starting from index through to the end of array.
System.InvalidCastExceptionThrown when array is strongly-typed and the IUIHierarchyNode type cannot be cast to the type of items within array.
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