SqlBatchCommandCollection.Insert 方法

定义

重载

Insert(Int32, SqlBatchCommand)

将某项插入 SqlBatchCommandCollection 中指定的索引处。

Insert(Int32, DbBatchCommand)

将具有指定名称的 DbBatchCommand 对象的指定索引插入指定索引处的集合中。

Insert(Int32, SqlBatchCommand)

将某项插入 SqlBatchCommandCollection 中指定的索引处。

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)

参数

index
Int32

实现

例外

适用于

Insert(Int32, DbBatchCommand)

将具有指定名称的 DbBatchCommand 对象的指定索引插入指定索引处的集合中。

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)

参数

index
Int32

插入 DbBatchCommand 对象的索引位置。

item
DbBatchCommand

要插入到 IList<T> 中的对象。

适用于