SynchronizedCollection<T>.CopyTo(T[], Int32) 方法

定義

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

public:
 virtual void CopyTo(cli::array <T> ^ array, int index);
public void CopyTo (T[] array, int index);
abstract member CopyTo : 'T[] * int -> unit
override this.CopyTo : 'T[] * int -> unit
Public Sub CopyTo (array As T(), index As Integer)

參數

array
T[]

從集合複製之 Array 型別元素的目的 T

index
Int32

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

實作

適用於