共用方式為


SqlBatchCommandCollection.GetBatchCommand(Int32) 方法

定義

SqlBatchCommand傳回清單中指定索引處的物件。

protected:
 override System::Data::Common::DbBatchCommand ^ GetBatchCommand(int index);
protected override System.Data.Common.DbBatchCommand GetBatchCommand (int index);
override this.GetBatchCommand : int -> System.Data.Common.DbBatchCommand
Protected Overrides Function GetBatchCommand (index As Integer) As DbBatchCommand

參數

index
Int32

SqlBatchCommand 物件所在的索引。

傳回

SqlBatchCommand位於清單中指定索引處的物件。

適用於