SqlBatchCommandCollection.Insert Method

Definition

Overloads

Insert(Int32, SqlBatchCommand)

Inserts an item into the SqlBatchCommandCollection at the specified index.

Insert(Int32, DbBatchCommand)

Inserts the specified index of the DbBatchCommand object with the specified name into the collection at the specified index.

Insert(Int32, SqlBatchCommand)

Inserts an item into the SqlBatchCommandCollection at the specified index.

public:
 virtual void Insert(int index, Microsoft::Data::SqlClient::SqlBatchCommand ^ item);
public void Insert (int index, Microsoft.Data.SqlClient.SqlBatchCommand item);
override this.Insert : int * Microsoft.Data.SqlClient.SqlBatchCommand -> unit
Public Sub Insert (index As Integer, item As SqlBatchCommand)

Parameters

index
Int32

Implements

Exceptions

Applies to

Insert(Int32, DbBatchCommand)

Inserts the specified index of the DbBatchCommand object with the specified name into the collection at the specified index.

public:
 override void Insert(int index, System::Data::Common::DbBatchCommand ^ item);
public override void Insert (int index, System.Data.Common.DbBatchCommand item);
override this.Insert : int * System.Data.Common.DbBatchCommand -> unit
Public Overrides Sub Insert (index As Integer, item As DbBatchCommand)

Parameters

index
Int32

The index at which to insert the DbBatchCommand object.

item
DbBatchCommand

The object to insert into the IList<T>.

Applies to