Click or drag to resize

DatabaseFactoryDatabaseExists Method

Checks if underlying data exists for a given database in the given directory. A null directory will check the library default directory for the platform

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

Parameters

name
Type: SystemString
The name of the database to check for
directory
Type: SystemString
The directory to check in

Return Value

Type: Boolean
true if data exists, false otherwise
Exceptions
ExceptionCondition
ArgumentNullExceptionname is null
ArgumentExceptionname contains invalid characters
See Also