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.1.0-b0232
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