Share via


SqlBatchCommandCollection.SetBatchCommand(Int32, DbBatchCommand) Method

Definition

Sets the SqlBatchCommand object at the specified index to a new value.

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)

Parameters

index
Int32

The index where the SqlBatchCommand object should be located.

batchCommand
DbBatchCommand

The SqlBatchCommand object to add to the collection.

Applies to