Share via


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입니다.

적용 대상