Click or drag to resize

Document Class

A class representing an entry in a Couchbase Lite Database. It consists of some metadata, and a collection of user-defined properties
Inheritance Hierarchy

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0382
Syntax
C#
public sealed class Document : ReadOnlyDocument, 
	IDictionaryObject, IReadOnlyDictionary, IReadOnlyDictionaryFragment, IReadOnlyCollection<KeyValuePair<string, Object>>, 
	IEnumerable<KeyValuePair<string, Object>>, IEnumerable, 
	IDictionaryFragment

The Document type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
Gets the number of top level entries in this document
(Inherited from ReadOnlyDocument.)
Public propertyDatabase
Gets the database that this document belongs to, if any
(Inherited from ReadOnlyDocument.)
Public propertyId
Gets this document's unique ID
(Inherited from ReadOnlyDocument.)
Public propertyIsDeleted
Gets whether or not this document is deleted
(Inherited from ReadOnlyDocument.)
Public propertyItem
Gets the value of the given key, or lack thereof, wrapped inside of a Fragment
Public propertyKeys
Gets all the keys present in this document
(Inherited from ReadOnlyDocument.)
Public propertySequence
Gets the sequence of this document (a unique incrementing number identifying its status in a database)
(Inherited from ReadOnlyDocument.)
Top
Methods
  NameDescription
Public methodContains (Inherited from ReadOnlyDocument.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from ReadOnlyDocument.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetArray
Gets the value of a given key as an IArray
Public methodGetBlob (Inherited from ReadOnlyDocument.)
Public methodGetBoolean (Inherited from ReadOnlyDocument.)
Public methodGetDate (Inherited from ReadOnlyDocument.)
Public methodGetDictionary
Gets the value of a given key as a dictionary
Public methodGetDouble (Inherited from ReadOnlyDocument.)
Public methodGetEnumerator (Inherited from ReadOnlyDocument.)
Public methodGetFloat (Inherited from ReadOnlyDocument.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetInt (Inherited from ReadOnlyDocument.)
Public methodGetLong (Inherited from ReadOnlyDocument.)
Public methodGetObject (Inherited from ReadOnlyDocument.)
Public methodGetString (Inherited from ReadOnlyDocument.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemove
Removes the given key from this dictionary
Public methodSet(IDictionaryString, Object)
Replaces the contents of this dictionary with the contents of the given one
Public methodSet(String, ArrayObject)
Sets the given key to the given value
Public methodSet(String, Blob)
Sets the given key to the given value
Public methodSet(String, DictionaryObject)
Sets the given key to the given value
Public methodSet(String, Boolean)
Sets the given key to the given value
Public methodSet(String, DateTimeOffset)
Sets the given key to the given value
Public methodSet(String, Double)
Sets the given key to the given value
Public methodSet(String, Int32)
Sets the given key to the given value
Public methodSet(String, Int64)
Sets the given key to the given value
Public methodSet(String, Object)
Sets the given key to the given value
Public methodSet(String, Single)
Sets the given key to the given value
Public methodSet(String, String)
Sets the given key to the given value
Public methodToDictionary (Inherited from ReadOnlyDocument.)
Public methodToString
Returns a string that represents the current object.
(Overrides ReadOnlyDocumentToString.)
Top
See Also