Dela via


SqlBatchCommandCollection.Contains Method

Definition

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

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.

Applies to