SynchronizedReadOnlyCollection<T>.ICollection.CopyTo 方法

定義

從特定索引開始,將集合的項目複製到指定的陣列。

 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

陣列中以零為起始的索引,而且複製會從該位置開始。

實作

適用於