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

定义

从特定的 ICollection 索引开始,将 Array 的元素复制到一个 Array 中。Copies the elements of the ICollection to an Array, starting at a particular Array index.

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

参数

array
Array

作为复制操作的目标的 ArrayThe Array which is the target of the copy operation.

index
Int32

ICollection 中开始复制操作的从零开始的索引。The zero-based index within the ICollection where the copy starts.

实现

适用于