Click or drag to resize

DatabaseExists Method

Checks whether a database of the given name exists in the given directory or not. If a null directory is passed then the default directory is checked

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0713
Syntax
C#
public static bool Exists(
	string name,
	string directory
)

Parameters

name
Type: SystemString
The database name
directory
Type: SystemString
The directory where the database is located

Return Value

Type: Boolean
true if the database exists in the directory, otherwise false
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if name is null
CouchbaseExceptionThrown if an error condition is returned from LiteCore
See Also