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

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

返品

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

適用対象