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.

適用於