語言

ImmutableList<T>.Builder.ICollection.CopyTo(Array, Int32) 方法

定義

從特定陣列索引開始,將清單的專案複製到陣列。

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

參數

array
Array

一維陣列,作為從清單複製元素的目的地。 陣列必須具有零基索引。

arrayIndex
Int32

複製開始的零基索引 array 。

實作

例外狀況

備註

此成員為明確介面成員實作。 它只能在實 ImmutableList<T>.Builder 例投射到 ICollection 介面時使用。

適用於