Click or drag to resize

ManagerOpenDatabase Method

Returns the database with the given name. If the database is not yet open, the options given will be applied; if it's already open, the options are ignored. Multiple calls with the same name will return the same CBLDatabase instance.

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
public Database OpenDatabase(
	string name,
	DatabaseOptions options
)

Parameters

name
Type: SystemString
The name of the database. May NOT contain capital letters!
options
Type: Couchbase.LiteDatabaseOptions
ptions to use when opening, such as the encryption key; if nil, a default set of options will be used.

Return Value

Type: Database
The opened database, or null if it doesn't exist and options.Create is false
Exceptions
ExceptionCondition
CouchbaseLiteExceptionThrown if an error occurs opening the database
See Also