ListViewPagedDataSource.CopyTo(Array, Int32) 方法

定义

Array 中的指定索引位置开始,将数据源中的所有项复制到指定的 Array对象。Copies all the items from the data source to the specified Array object, starting at the specified index in 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对象,它接收来自数据源的复制项。A zero-based Array object that receives the copied items from the data source.

index
Int32

指定的 Array 对象中接收复制内容的第一个位置。The first position in the specified Array object to receive the copied contents.

实现

注解

使用此方法可以 System.Array 从指定的索引处开始,将数据源的内容复制到指定的对象中。Use this method to copy the contents of the data source into the specified System.Array object, starting at the specified index. System.Array对象通常用于循环访问数据源中的项。The System.Array object is often used to iterate through the items in the data source.

适用于

另请参阅