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

定义

从特定数组索引处开始,将 ICollection 的元素复制到一个数组中。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

作为从 ICollection 复制的元素目标的一维数组。The one-dimensional Array that is the destination of the elements copied from ICollection. 数组必须具有从零开始的索引。The Array must have zero-based indexing.

index
Int32

array 中从零开始的索引,从此处开始复制。The zero-based index in array at which copying begins.

实现

适用于