Copies all items in the collection to an array, starting at a particular array index.
Copies the ArrayList or a portion of it to a one-dimensional array.
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
- array
-
A one-dimensional array that is the destination of the copied elements (must use zero-based indexing).
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 at which copying of items begins.
The zero-based index in array at which copying begins.
Use this method to copy the contents of a collection to an array (0-based).
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family