PrincipalValueCollection<T>.ICollection.CopyTo(Array, Int32) PrincipalValueCollection<T>.ICollection.CopyTo(Array, Int32) Method

定義

從指定的索引開始,將集合的內容複製至指定的陣列。Copies the contents of the collection to the specified array, starting at the specified 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

物件的 ArrayAn Array of objects.

index
Int32 Int32

表示 array 中位置的整數,集合中的第一個物件應複製到該處。An integer representing the position in array to which the first object in the collection should be copied.

實作

適用於