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

定义

从此 DetailsViewRowCollection 对象中的所有项复制到指定 Array 对象,从指定索引 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

从零 Array 开始接收从中复制的 DetailsViewRowCollection项。

index
Int32

指定 Array 接收复制内容的第一个索引。

实现

注解

该方法的 ICollection.CopyTo(Array, Int32) 此实现是类用来 DetailsViewRowCollection 将对象中的 DetailsViewRowCollection 项复制到指定对象的帮助程序方法,从指定的 Array 索引开始。 Array然后,该对象可用于访问集合中的项。

注释

必须对array参数使用从Array零开始的对象。

适用于

另请参阅