OperationParameterInfoCollection.ICollection.CopyTo(Array, Int32) OperationParameterInfoCollection.ICollection.CopyTo(Array, Int32) Method

定義

從特定的陣列索引開始,將 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);

參數

array
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 Int32

array 中以零起始的索引,即開始複製的位置。The zero-based index in array at which copying begins.

實作

適用於