InternalDataCollectionBase.CopyTo(Array, Int32) 方法

定義

複製目前 InternalDataCollectionBase 的所有項目至一維 Array,開始於指定的 InternalDataCollectionBase 索引。Copies all the elements of the current InternalDataCollectionBase to a one-dimensional Array, starting at the specified InternalDataCollectionBase index.

public:
 virtual void CopyTo(Array ^ ar, int index);
public void CopyTo (Array ar, int index);
abstract member CopyTo : Array * int -> unit
override this.CopyTo : Array * int -> unit
Public Sub CopyTo (ar As Array, index As Integer)

參數

ar
Array

要複製目前 Array 物件項目的目的一維 InternalDataCollectionBaseThe one-dimensional Array to copy the current InternalDataCollectionBase object's elements into.

index
Int32

要開始複製的目的端 Array 索引。The destination Array index to start copying into.

實作

備註

衍生類別可以覆寫這個方法。This method can be overridden by a derived class.

BaseCollection 類別及其成員不適合當做獨立元件使用,而是做為其他集合類別衍生標準功能的類別。The BaseCollection class and its members are not intended for use as a stand-alone component, but as the class from which other collection classes derive standard functionality.

適用於