SqlBatchCommandCollection.Contains 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
Contains(SqlBatchCommand) |
Determines whether a SqlBatchCommand is in the SqlBatchCommandCollection. |
Contains(DbBatchCommand) |
Indicates whether a DbBatchCommand is contained in the collection. |
Contains(SqlBatchCommand)
Determines whether a SqlBatchCommand is in the SqlBatchCommandCollection.
public:
virtual bool Contains(Microsoft::Data::SqlClient::SqlBatchCommand ^ item);
public bool Contains (Microsoft.Data.SqlClient.SqlBatchCommand item);
override this.Contains : Microsoft.Data.SqlClient.SqlBatchCommand -> bool
Public Function Contains (item As SqlBatchCommand) As Boolean
Parameters
- item
- SqlBatchCommand
Returns
Implements
Applies to
Contains(DbBatchCommand)
Indicates whether a DbBatchCommand is contained in the collection.
public:
override bool Contains(System::Data::Common::DbBatchCommand ^ item);
public override bool Contains (System.Data.Common.DbBatchCommand item);
override this.Contains : System.Data.Common.DbBatchCommand -> bool
Public Overrides Function Contains (item As DbBatchCommand) As Boolean
Parameters
- item
- DbBatchCommand
The object to locate in the ICollection<T>.
Returns
true
if the DbBatchCommand is in the collection; otherwise false
.