PowerTCP Zip Compression for .NET
CopyTo Method




The one-dimensional Array that is the destination of the elements copied from ArrayList. The Array must have zero-based indexing.
The zero-based index in array at which copying begins.
Copies the entire ArrayList to a compatible one-dimensional Array, starting at the specified index of the target array.
Syntax
Public Sub CopyTo( _
   ByVal array As Array, _
   ByVal index As Integer _
) 
Dim instance As Archive
Dim array As Array
Dim index As Integer
 
instance.CopyTo(array, index)
public void CopyTo( 
   Array array,
   int index
)
public: void CopyTo( 
   Array* array,
   int index
) 
public:
void CopyTo( 
   Array^ array,
   int index
) 

Parameters

array
The one-dimensional Array that is the destination of the elements copied from ArrayList. The Array must have zero-based indexing.
index
The zero-based index in array at which copying begins.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionarray is a null reference (Nothing in Visual Basic).
System.ArgumentOutOfRangeExceptionIndex is less than zero.
System.ArgumentExceptionarray is multidimensional.
System.InvalidCastExceptionThe type of the source ArrayList cannot be cast automatically to the type of the destination array.
Remarks

The specified array must be of a compatible type.

This method uses Array.Copy to copy the elements.

See Also

Reference

Archive Class
Archive Members


PowerTCP Zip for .NET Documentation Version 2.1.1
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic