DataRowCollection.CopyTo 方法

定义

将该集合中的所有 DataRow 对象复制到起始位置为给定目标数组索引的给定数组中。Copies all the DataRow objects from the collection into the given array, starting at the given destination array index.

重载

CopyTo(Array, Int32)

将该集合中的所有 DataRow 对象复制到起始位置为给定目标数组索引的给定数组中。Copies all the DataRow objects from the collection into the given array, starting at the given destination array index.

CopyTo(DataRow[], Int32)

将该集合中的所有 DataRow 对象复制到起始位置为给定目标数组索引的给定数组中。Copies all the DataRow objects from the collection into the given array, starting at the given destination array index.

CopyTo(Array, Int32)

将该集合中的所有 DataRow 对象复制到起始位置为给定目标数组索引的给定数组中。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)

参数

ar
Array

一维数组,充当要从 DataRowCollection 复制的元素的目标。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.

CopyTo(DataRow[], Int32)

将该集合中的所有 DataRow 对象复制到起始位置为给定目标数组索引的给定数组中。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)

参数

array
DataRow[]

一维数组,充当要从 DataRowCollection 复制的元素的目标。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.

适用于