DataTableCollection.CopyTo(DataTable[], Int32) 方法

定义

将当前 DataTableCollection 的所有元素复制到一维 Array,从指定目标数组索引处开始。Copies all the elements of the current DataTableCollection to a one-dimensional Array, starting at the specified destination array index.

public:
 void CopyTo(cli::array <System::Data::DataTable ^> ^ array, int index);
public void CopyTo (System.Data.DataTable[] array, int index);
override this.CopyTo : System.Data.DataTable[] * int -> unit
Public Sub CopyTo (array As DataTable(), index As Integer)

参数

array
DataTable[]

要将当前 Array 对象的元素复制到其中的一维 DataTableCollectionThe one-dimensional Array to copy the current DataTableCollection object's elements into.

index
Int32

从其所在位置开始复制对象的目标 Array 索引。The destination Array index to start copying into.

注解

此方法可由派生类重写。This method can be overridden by a derived class.

适用于