共用方式為


SqlBatchCommandCollection.Add 方法

定義

多載

Add(SqlBatchCommand)

public:
 virtual void Add(Microsoft::Data::SqlClient::SqlBatchCommand ^ item);
public void Add(Microsoft.Data.SqlClient.SqlBatchCommand item);
override this.Add : Microsoft.Data.SqlClient.SqlBatchCommand -> unit
Public Sub Add (item As SqlBatchCommand)

參數

實作

適用於

Add(DbBatchCommand)

將指定的 DbBatchCommand 物件加入至 ICollection<T>

public:
 override void Add(System::Data::Common::DbBatchCommand ^ item);
public override void Add(System.Data.Common.DbBatchCommand item);
override this.Add : System.Data.Common.DbBatchCommand -> unit
Public Overrides Sub Add (item As DbBatchCommand)

參數

item
DbBatchCommand

要加入至 ICollection<T> 的物件。

適用於