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

定义

从此集合中的所有项复制到指定 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 开始接收集合中复制的项。

index
Int32

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

实现

注解

该方法的 ICollection.CopyTo 此实现是类用来 DataKeyArray 将集合中的 DataKeyArray 项复制到指定 System.Array索引处的帮助程序方法。 然后,可以使用它 System.Array 访问集合中的项。

注释

必须对System.Array参数使用从array零开始。

适用于

另请参阅