DatabaseSave Method (MutableDocument, ConcurrencyControl) |
Namespace:
Couchbase.Lite
Assembly:
Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0713
Syntax 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:
Booleantrue if the save succeeded,
false if there was a conflict
Exceptions Exception | Condition |
---|
InvalidOperationException | Thrown when trying to save a document into a database
other than the one it was previously added to |
See Also