EntityCollection<TEntity>.CopyTo(TEntity[], Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將集合中的所有內容從目標陣列指定的索引開始複製到陣列。
public:
virtual void CopyTo(cli::array <TEntity> ^ array, int arrayIndex);
public void CopyTo(TEntity[] array, int arrayIndex);
abstract member CopyTo : 'Entity[] * int -> unit
override this.CopyTo : 'Entity[] * int -> unit
Public Sub CopyTo (array As TEntity(), arrayIndex As Integer)
參數
- array
- TEntity[]
要複製到的陣列。
- arrayIndex
- Int32
複製開始的陣列中以零為基礎的索引。