Share via


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> 的物件。

適用於