Share via


SqlBatchCommandCollection.Remove Method

Definition

Overloads

Remove(SqlBatchCommand)

Removes the first occurence of a specific SqlBatchCommand object from the collection.

Remove(DbBatchCommand)

Removes the specified SqlBatchCommand object from the collection.

Remove(SqlBatchCommand)

Removes the first occurence of a specific SqlBatchCommand object from the collection.

public:
 virtual bool Remove(Microsoft::Data::SqlClient::SqlBatchCommand ^ item);
public bool Remove (Microsoft.Data.SqlClient.SqlBatchCommand item);
override this.Remove : Microsoft.Data.SqlClient.SqlBatchCommand -> bool
Public Function Remove (item As SqlBatchCommand) As Boolean

Parameters

Returns

Returns true if an item is successfully removed. Returns false if an item could not be removed or no item was not found.

Implements

Applies to

Remove(DbBatchCommand)

Removes the specified SqlBatchCommand object from the collection.

public:
 override bool Remove(System::Data::Common::DbBatchCommand ^ item);
public override bool Remove (System.Data.Common.DbBatchCommand item);
override this.Remove : System.Data.Common.DbBatchCommand -> bool
Public Overrides Function Remove (item As DbBatchCommand) As Boolean

Parameters

item
DbBatchCommand

The object to remove from the ICollection<T>.

Returns

true if item was successfully removed; otherwise, false. This method also returns false if item was not found in the ICollection<T>.

Applies to