Share via


SqlBatchCommandCollection.Add Method

Definition

Overloads

Add(SqlBatchCommand)

Add a SqlBatchCommand to the end of the SqlBatchCommandCollection.

Add(DbBatchCommand)

Adds the specified DbBatchCommand object to the ICollection<T>.

Add(SqlBatchCommand)

Add a SqlBatchCommand to the end of the SqlBatchCommandCollection.

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)

Parameters

Implements

Applies to

Add(DbBatchCommand)

Adds the specified DbBatchCommand object to the 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)

Parameters

item
DbBatchCommand

The object to add to the ICollection<T>.

Applies to