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-b0125
Syntax
C#
public sealed class Document : ReadOnlyDocument, 
	IDictionaryObject, IReadOnlyDictionary, IReadOnlyDictionaryFragment, IEnumerable<KeyValuePair<string, Object>>, 
	IEnumerable, IDictionaryFragment

The Document type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
Gets the number of entries in the dictionary
(Overrides ReadOnlyDictionaryCount.)
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 held by this dictionary
(Overrides ReadOnlyDictionaryKeys.)
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
Checks if a given key is present in the dictionary
(Overrides ReadOnlyDictionaryContains(String).)
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
Gets the value of a given key as a Blob
(Overrides ReadOnlyDictionaryGetBlob(String).)
Public methodGetBoolean
Gets the value of a given key as a Boolean
(Overrides ReadOnlyDictionaryGetBoolean(String).)
Public methodGetDate
Gets the value of a given key as a DateTimeOffset
(Overrides ReadOnlyDictionaryGetDate(String).)
Public methodGetDictionary
Gets the value of a given key as a dictionary
Public methodGetDouble
Gets the value of a given key as a Double
(Overrides ReadOnlyDictionaryGetDouble(String).)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
(Overrides ReadOnlyDictionaryGetEnumerator.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetInt
Gets the value of a given key as an Int32
(Overrides ReadOnlyDictionaryGetInt(String).)
Public methodGetLong
Gets the value of a given key as an Int64
(Overrides ReadOnlyDictionaryGetLong(String).)
Public methodGetObject
Gets the value of a given key as an untyped object
(Overrides ReadOnlyDictionaryGetObject(String).)
Public methodGetString
Gets the value of a given key as a String
(Overrides ReadOnlyDictionaryGetString(String).)
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, Object)
Sets the given key to the given value
Public methodToDictionary (Overrides ReadOnlyDictionaryToDictionary.)
Public methodToString
Returns a string that represents the current object.
(Overrides ReadOnlyDocumentToString.)
Top
Extension Methods
See Also