RasCollection(TObject).CopyTo Method

DotRas SDK

Collapse image Expand Image Copy image CopyHover image
Copies the entries to a Array starting at a particular index.

Namespace: DotRas.Design
Assembly: DotRas (in DotRas.dll) Version: 1.3.5166.33435 (1.3.0.0)

Syntax

C#
public void CopyTo(
	TObject[] array,
	int arrayIndex
)
Visual Basic
Public Sub CopyTo ( 
	array As TObject(),
	arrayIndex As Integer
)
Visual C++
public:
virtual void CopyTo(
	array<TObject>^ array, 
	int arrayIndex
) sealed
F#
abstract CopyTo : 
        array : 'TObject[] * 
        arrayIndex : int -> unit 
override CopyTo : 
        array : 'TObject[] * 
        arrayIndex : int -> unit 

Parameters

array
Type: array<TObject>[]()[][]
The one-dimensional Array that is the destination of the elements copied from collection. The Array must have zero-based indexing.
arrayIndex
Type: System..::..Int32
The zero-based index in array at which copying begins.

Implements

ICollection<(Of <(<'T>)>)>..::..CopyTo(array<T>[]()[][], Int32)

Exceptions

Exception Condition
System..::..ArgumentNullException array is a null reference (Nothing in Visual Basic).
System..::..ArgumentOutOfRangeException arrayIndex is less than zero.

See Also