共用方式為


SqlBatchCommandCollection.CopyTo 方法

定義

多載

CopyTo(SqlBatchCommand[], Int32)

從目標陣列的目標索引開始,將整個 SqlBatchCommandCollection 複製到一維陣列。

CopyTo(DbBatchCommand[], Int32)

從特定的 ICollection<T> 索引開始,將 Array 的項目複製到 Array

CopyTo(SqlBatchCommand[], Int32)

從目標陣列的目標索引開始,將整個 SqlBatchCommandCollection 複製到一維陣列。

public:
 virtual void CopyTo(cli::array <Microsoft::Data::SqlClient::SqlBatchCommand ^> ^ array, int arrayIndex);
public void CopyTo (Microsoft.Data.SqlClient.SqlBatchCommand[] array, int arrayIndex);
override this.CopyTo : Microsoft.Data.SqlClient.SqlBatchCommand[] * int -> unit
Public Sub CopyTo (array As SqlBatchCommand(), arrayIndex As Integer)

參數

array
SqlBatchCommand[]
arrayIndex
Int32

實作

適用於

CopyTo(DbBatchCommand[], Int32)

從特定的 ICollection<T> 索引開始,將 Array 的項目複製到 Array

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

參數

array
DbBatchCommand[]

一維 Array,是從 ICollection<T> 複製過來之項目的目的端。 Array 必須有以零為起始的索引。

arrayIndex
Int32

array 中以零起始的索引,即開始複製的位置。

適用於