SynchronizedReadOnlyCollection<T>.CopyTo(T[], Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從特定索引開始,將集合的專案複製到指定的陣列。
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 是從集合複製元素的目的地。
- index
- Int32
複製開始的陣列中以零為基礎的索引。