Edit

Share via


DataRowCollection.CopyTo Method

Definition

Copies all the DataRow objects from the collection into the given array, starting at the given destination array index.

Overloads

CopyTo(Array, Int32)

Copies all the DataRow objects from the collection into the given array, starting at the given destination array index.

CopyTo(DataRow[], Int32)

Copies all the DataRow objects from the collection into the given array, starting at the given destination array index.

CopyTo(Array, Int32)

Source:
DataRowCollection.cs
Source:
DataRowCollection.cs
Source:
DataRowCollection.cs

Copies all the DataRow objects from the collection into the given array, starting at the given destination array index.

public:
 override void CopyTo(Array ^ ar, int index);
public override void CopyTo (Array ar, int index);
override this.CopyTo : Array * int -> unit
Public Overrides Sub CopyTo (ar As Array, index As Integer)

Parameters

ar
Array

The one-dimensional array that is the destination of the elements copied from the DataRowCollection. The array must have zero-based indexing.

index
Int32

The zero-based index in the array at which copying begins.

Applies to

CopyTo(DataRow[], Int32)

Source:
DataRowCollection.cs
Source:
DataRowCollection.cs
Source:
DataRowCollection.cs

Copies all the DataRow objects from the collection into the given array, starting at the given destination array index.

public:
 void CopyTo(cli::array <System::Data::DataRow ^> ^ array, int index);
public void CopyTo (System.Data.DataRow[] array, int index);
override this.CopyTo : System.Data.DataRow[] * int -> unit
Public Sub CopyTo (array As DataRow(), index As Integer)

Parameters

array
DataRow[]

The one-dimensional array that is the destination of the elements copied from the DataRowCollection. The array must have zero-based indexing.

index
Int32

The zero-based index in the array at which copying begins.

Applies to