共用方式為


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

適用於