DetailsViewRowCollection.ICollection.CopyTo(Array, Int32) 方法

定義

Array 中的指定索引處開始,將此 DetailsViewRowCollection 物件的所有項目複製到指定的 Array 物件。

 virtual void System.Collections.ICollection.CopyTo(Array ^ array, int index) = System::Collections::ICollection::CopyTo;
void ICollection.CopyTo (Array array, int index);
abstract member System.Collections.ICollection.CopyTo : Array * int -> unit
override this.System.Collections.ICollection.CopyTo : Array * int -> unit
Sub CopyTo (array As Array, index As Integer) Implements ICollection.CopyTo

參數

array
Array

DetailsViewRowCollection 接收複製項目的以零為起始的 Array

index
Int32

在指定的 Array 中的第一個索引,用來接收複製內容。

實作

備註

這個 方法的實作 ICollection.CopyTo(Array, Int32) 是 類別用來 DetailsViewRowCollection 將 物件中的 DetailsViewRowCollection 專案複製到指定物件的協助程式方法,從指定的 Array 索引開始。 然後, Array 可以使用 物件來存取集合中的專案。

注意

您必須針對 array 參數使用以零起始 Array 的物件。

適用於

另請參閱