SqlBatchCommandCollection.Insert 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
- item
- SqlBatchCommand
實作
例外狀況
適用於
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> 的物件。