語言

PagedDataSource.CopyTo(Array, Int32) 方法

定義

從資料來源複製所有項目到指定的 Array索引 ,從 中指定的索引 Array開始。

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

參數

array
Array

一個零基 Array 的,接收從資料來源複製的項目。

index
Int32

在指定 Array 位置中第一個接收複製內容。

實作

備註

使用此方法將資料來源內容從指定的索引開始複製到指定 System.Array的 中。 System.Array通常用於遍歷資料來源中的項目。

適用於

另請參閱