DbProviderServices.DbDatabaseExists メソッド

定義

特定のデータベースがサーバーに存在するかどうか、および storeItemCollection に含まれているスキーマ オブジェクトが作成されたかどうかを示す値を返します。

protected:
 virtual bool DbDatabaseExists(System::Data::Common::DbConnection ^ connection, Nullable<int> commandTimeout, System::Data::Metadata::Edm::StoreItemCollection ^ storeItemCollection);
protected virtual bool DbDatabaseExists (System.Data.Common.DbConnection connection, int? commandTimeout, System.Data.Metadata.Edm.StoreItemCollection storeItemCollection);
abstract member DbDatabaseExists : System.Data.Common.DbConnection * Nullable<int> * System.Data.Metadata.Edm.StoreItemCollection -> bool
override this.DbDatabaseExists : System.Data.Common.DbConnection * Nullable<int> * System.Data.Metadata.Edm.StoreItemCollection -> bool
Protected Overridable Function DbDatabaseExists (connection As DbConnection, commandTimeout As Nullable(Of Integer), storeItemCollection As StoreItemCollection) As Boolean

パラメーター

connection
DbConnection

このメソッドによって存在が確認されるデータベースへの接続。

commandTimeout
Nullable<Int32>

データベースの存在を確認するために必要なすべてのコマンドの実行タイムアウト。

storeItemCollection
StoreItemCollection

このメソッドによって存在が確認されるデータベースの構造。

戻り値

接続および storeItemCollection パラメーターで示されるデータベースが存在する場合は true。それ以外の場合は false

適用対象