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 プロバイダーが接続に基づいてのみデータベースを推測できる場合。

適用対象