- array
- The one-dimensional Array that is the destination of the items to be copied from the collection.
- arrayIndex
- The zero-based index in the destination array at which copying begins.
Visual Basic (Declaration) | |
---|---|
Public Sub CopyTo( _ ByVal array() As Processor, _ ByVal arrayIndex As Integer _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As Processors Dim array() As Processor Dim arrayIndex As Integer instance.CopyTo(array, arrayIndex) |
C# | |
---|---|
public void CopyTo( Processor[] array, int arrayIndex ) |
C++/CLI | |
---|---|
public: void CopyTo( array<Processor^>^ array, int arrayIndex ) |
Parameters
- array
- The one-dimensional Array that is the destination of the items to be copied from the collection.
- arrayIndex
- The zero-based index in the destination array at which copying begins.
Exception | Description |
---|---|
System.ArgumentNullException | |
System.ArgumentOutOfRangeException | |
System.ArgumentException |
The Array must have zero-based indexing.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7