共用方式為


SqlBatchCommandCollection.Contains 方法

定義

多載

Contains(SqlBatchCommand)

判斷 SqlBatchCommand 是否位於 SqlBatchCommandCollection

Contains(DbBatchCommand)

指出是否 DbBatchCommand 包含在集合中。

Contains(SqlBatchCommand)

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

參數

傳回

實作

適用於

Contains(DbBatchCommand)

指出是否 DbBatchCommand 包含在集合中。

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

參數

item
DbBatchCommand

要在 ICollection<T> 中尋找的物件。

傳回

如果集合中有 DbBatchCommand,則為 true;否則為 false

適用於