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> 中的对象。