Click or drag to resize

MutableDocument 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-b0713
Syntax
C#
public sealed class MutableDocument : Document, 
	IMutableDictionary, IDictionaryObject, IDictionaryFragment, IEnumerable<KeyValuePair<string, Object>>, 
	IEnumerable, IMutableDictionaryFragment

The MutableDocument type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
Gets the number of entries in this dictionary
(Inherited from Document.)
Public propertyId
Gets this document's unique ID
(Inherited from Document.)
Public propertyItem
Gets the value of the given key, or lack thereof, wrapped inside of a IMutableFragment
Public propertyKeys
Gets all the keys held by this dictionary
(Inherited from Document.)
Public propertySequence
Gets the sequence of this document (a unique incrementing number identifying its status in a database)
(Inherited from Document.)
Top
Methods
  NameDescription
Public methodContains
Checks if a given key is present in the dictionary
(Inherited from Document.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from Document.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Document.)
Public methodGetArray
Gets the value of a given key as an IMutableArray
Public methodGetBlob
Gets the value of a given key as a Blob
(Inherited from Document.)
Public methodGetBoolean
Gets the value of a given key as a Boolean
(Inherited from Document.)
Public methodGetDate
Gets the value of a given key as a DateTimeOffset
(Inherited from Document.)
Public methodGetDictionary
Gets the value of a given key as a dictionary
Public methodGetDouble
Gets the value of a given key as a Double
(Inherited from Document.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
(Inherited from Document.)
Public methodGetFloat
Gets the value of a given key as a Single
(Inherited from Document.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Document.)
Public methodGetInt
Gets the value of a given key as an Int32
(Inherited from Document.)
Public methodGetLong
Gets the value of a given key as an Int64
(Inherited from Document.)
Public methodGetString
Gets the value of a given key as a String
(Inherited from Document.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
Gets the value of a given key as an untyped object
(Inherited from Document.)
Public methodRemove
Removes the given key from this dictionary
Public methodSetArray
Sets the given key to the given value
Public methodSetBlob
Sets the given key to the given value
Public methodSetBoolean
Sets the given key to the given value
Public methodSetData
Replaces the contents of this dictionary with the contents of the given one
Public methodSetDate
Sets the given key to the given value
Public methodSetDictionary
Sets the given key to the given value
Public methodSetDouble
Sets the given key to the given value
Public methodSetFloat
Sets the given key to the given value
Public methodSetInt
Sets the given key to the given value
Public methodSetLong
Sets the given key to the given value
Public methodSetString
Sets the given key to the given value
Public methodSetValue
Sets the given key to the given value
Public methodToDictionary (Inherited from Document.)
Public methodToMutable
Creates a mutable version of a document (i.e. one that can be edited)
(Overrides DocumentToMutable.)
Public methodToString
Returns a string that represents the current object.
(Overrides DocumentToString.)
Top
See Also