DbProviderServices.DatabaseExists メソッド

定義

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

public:
 bool DatabaseExists(System::Data::Common::DbConnection ^ connection, Nullable<int> commandTimeout, System::Data::Metadata::Edm::StoreItemCollection ^ storeItemCollection);
public bool DatabaseExists (System.Data.Common.DbConnection connection, int? commandTimeout, System.Data.Metadata.Edm.StoreItemCollection storeItemCollection);
member this.DatabaseExists : System.Data.Common.DbConnection * Nullable<int> * System.Data.Metadata.Edm.StoreItemCollection -> bool
Public Function DatabaseExists (connection As DbConnection, commandTimeout As Nullable(Of Integer), storeItemCollection As StoreItemCollection) As Boolean

パラメーター

connection
DbConnection

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

commandTimeout
Nullable<Int32>

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

storeItemCollection
StoreItemCollection

このメソッドによって存在が確認されるデータベースに含まれているすべてのストア アイテムのコレクション。

戻り値

プロバイダーが、接続のみに基づいてデータベースを推測できる場合は true

適用対象