Click or drag to resize

UnsavedRevision Class

An unsaved Couchbase Lite Document Revision.
Inheritance Hierarchy

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
public class UnsavedRevision : Revision, 
	IDisposable

The UnsavedRevision type exposes the following members.

Properties
  NameDescription
Public propertyAttachmentNames
Gets the names of all the Attachments.
(Inherited from Revision.)
Public propertyAttachments
Gets all the Attachments.
(Inherited from Revision.)
Public propertyDatabase
Gets the Database that owns the Revision's Document.
(Inherited from Revision.)
Public propertyDocument
Gets the Document that this Revision belongs to.
(Inherited from Revision.)
Public propertyId
Gets the Revision's id.
(Overrides RevisionId.)
Public propertyIsDeletion
Gets or sets if the Revision marks the deletion of its Document.
Public propertyIsGone
Does this revision mark the deletion or removal (from available channels) of its document? (In other words, does it have a "_deleted_ or "_removed" property?)
(Inherited from Revision.)
Public propertyParent
Gets the parent Revision.
(Overrides RevisionParent.)
Public propertyParentId
Gets the parent Revision's Id.
(Overrides RevisionParentId.)
Public propertyProperties
Gets the properties of the Revision.
(Overrides RevisionProperties.)
Public propertyRevisionHistory
Returns the history of this document as an array of Revisions, in forward order.
(Overrides RevisionRevisionHistory.)
Public propertyUserProperties
Gets the properties of the Revision. without any properties with keys prefixed with '_' (which contain Couchbase Lite data).
(Inherited from Revision.)
Top
Methods
  NameDescription
Public methodDispose
Releases all resource used by the UnsavedRevision object.
Public methodEquals
Determines whether the specified Object is equal to the current Revision.
(Inherited from Revision.)
Public methodGetAttachment
Returns the Attachment with the specified name if it exists, otherwise null.
(Inherited from Revision.)
Public methodGetHashCode
Serves as a hash function for a Revision object.
(Inherited from Revision.)
Public methodGetProperty
Returns the value of the property with the specified key.
(Inherited from Revision.)
Public methodRemoveAttachment
Removes the Attachment with the given name.
Public methodSave
Saves the UnsavedRevision. This will fail if its parent is not the current Revision of the associated Document.
Public methodSave(Boolean)
Saves the UnsavedRevision, optionally allowing the save when there is a conflict.
Public methodSetAttachment(String, String, IEnumerableByte)
Sets the attachment with the given name.
Public methodSetAttachment(String, String, Stream)
Sets the attachment with the given name.
Public methodSetAttachment(String, String, Uri)
Sets the attachment with the given name.
Public methodSetProperties
Sets the properties of the Revision.
Public methodSetUserProperties
Gets or sets the userProperties of the Revision.
Public methodToString (Overrides RevisionToString.)
Top
See Also