SqlBatchCommandCollection.Remove Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- item
- SqlBatchCommand
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>.