共用方式為


SqlBatchCommandCollection.Remove 方法

定義

多載

Remove(SqlBatchCommand)

從集合中移除第一個出現的特定 SqlBatchCommand 物件。

Remove(DbBatchCommand)

從集合中移除指定的 SqlBatchCommand 物件。

Remove(SqlBatchCommand)

從集合中移除第一個出現的特定 SqlBatchCommand 物件。

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

參數

傳回

如果成功移除專案,則傳 true 回 。 如果無法移除專案或找不到專案,則傳回 false。

實作

適用於

Remove(DbBatchCommand)

從集合中移除指定的 SqlBatchCommand 物件。

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

參數

item
DbBatchCommand

要從 ICollection<T> 移除的物件。

傳回

如果成功移除 item,則為 true;否則為 false。 如果在 false 中找不到 item,則這個方法也會傳回 ICollection<T>

適用於