Click or drag to resize

DocumentCreateRevision Method

Creates a new UnsavedRevision whose properties and attachments are initially identical to the current Revision.

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
public UnsavedRevision CreateRevision()

Return Value

Type: UnsavedRevision
A new UnsavedRevision whose properties and attachments are initially identical to the current Revision
Remarks
Creates an unsaved new revision whose parent is the currentRevision, or which will be the first revision if the document doesn't exist yet. You can modify this revision's properties and attachments, then save it. No change is made to the database until/unless you save the new revision.
See Also