SqlBatchCommandCollection.SetBatchCommand(Int32, DbBatchCommand) 方法

定义

将指定索引处的 SqlBatchCommand 对象设置为新值。

protected:
 override void SetBatchCommand(int index, System::Data::Common::DbBatchCommand ^ batchCommand);
protected override void SetBatchCommand (int index, System.Data.Common.DbBatchCommand batchCommand);
override this.SetBatchCommand : int * System.Data.Common.DbBatchCommand -> unit
Protected Overrides Sub SetBatchCommand (index As Integer, batchCommand As DbBatchCommand)

参数

index
Int32

对象应位于的 SqlBatchCommand 索引。

batchCommand
DbBatchCommand

适用于