Share via


DbProviderServices.DeleteDatabase 方法

定義

從資料庫刪除存放區項目集合中指定的所有存放區物件,然後刪除資料庫本身。

public:
 void DeleteDatabase(System::Data::Common::DbConnection ^ connection, Nullable<int> commandTimeout, System::Data::Metadata::Edm::StoreItemCollection ^ storeItemCollection);
public void DeleteDatabase (System.Data.Common.DbConnection connection, int? commandTimeout, System.Data.Metadata.Edm.StoreItemCollection storeItemCollection);
member this.DeleteDatabase : System.Data.Common.DbConnection * Nullable<int> * System.Data.Metadata.Edm.StoreItemCollection -> unit
Public Sub DeleteDatabase (connection As DbConnection, commandTimeout As Nullable(Of Integer), storeItemCollection As StoreItemCollection)

參數

connection
DbConnection

需要刪除之現有資料庫的連接。

commandTimeout
Nullable<Int32>

刪除資料庫時所需之任何命令的執行逾時時間。

storeItemCollection
StoreItemCollection

要刪除之資料庫的結構。

適用於