Click or drag to resize

DatabaseSave Method (MutableDocument, ConcurrencyControl)

Saves the given MutableDocument into this database

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.1.0-b0232
Syntax
C#
public bool Save(
	MutableDocument document,
	ConcurrencyControl concurrencyControl
)

Parameters

document
Type: Couchbase.LiteMutableDocument
The document to save
concurrencyControl
Type: Couchbase.LiteConcurrencyControl
The rule to use when encountering a conflict in the database

Return Value

Type: Boolean
true if the save succeeded, false if there was a conflict
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown when trying to save a document into a database other than the one it was previously added to
See Also