Share via


SqlBatchCommandCollection.CopyTo Method

Definition

Overloads

CopyTo(SqlBatchCommand[], Int32)

Copies the entire SqlBatchCommandCollection to a one dimensional array, starting at the target index of the target array.

CopyTo(DbBatchCommand[], Int32)

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

CopyTo(SqlBatchCommand[], Int32)

Copies the entire SqlBatchCommandCollection to a one dimensional array, starting at the target index of the target array.

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)

Parameters

array
SqlBatchCommand[]
arrayIndex
Int32

Implements

Applies to

CopyTo(DbBatchCommand[], Int32)

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

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)

Parameters

array
DbBatchCommand[]

The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.

arrayIndex
Int32

The zero-based index in array at which copying begins.

Applies to