MutableDocument Class |
Namespace: Couchbase.Lite
public sealed class MutableDocument : Document, IMutableDictionary, IDictionaryObject, IDictionaryFragment, IReadOnlyCollection<KeyValuePair<string, Object>>, IEnumerable<KeyValuePair<string, Object>>, IEnumerable, IMutableDictionaryFragment
The MutableDocument type exposes the following members.
| Name | Description | |
|---|---|---|
| MutableDocument |
Default Constructor
| |
| MutableDocument(IDictionaryString, Object) |
Creates a document with the given properties
| |
| MutableDocument(String) |
Creates a document given an ID
| |
| MutableDocument(String, IDictionaryString, Object) |
Creates a document with the given ID and properties
|
| Name | Description | |
|---|---|---|
| Count |
Gets the number of top level entries in this document
(Inherited from Document.) | |
| Database |
Gets the database that this document belongs to, if any
(Inherited from Document.) | |
| Id |
Gets this document's unique ID
(Inherited from Document.) | |
| IsDeleted |
Gets whether or not this document is deleted
(Inherited from Document.) | |
| Item |
Gets the value of the given key, or lack thereof,
wrapped inside of a Fragment | |
| Keys |
Gets all the keys present in this document
(Inherited from Document.) | |
| Sequence |
Gets the sequence of this document (a unique incrementing number
identifying its status in a database)
(Inherited from Document.) |
| Name | Description | |
|---|---|---|
| Contains |
Checks if a given key is present in the dictionary
(Inherited from Document.) | |
| Dispose |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from Document.) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| GetArray |
Gets the value of a given key as an IMutableArray | |
| GetBlob |
Gets the value of a given key as a Blob (Inherited from Document.) | |
| GetBoolean |
Gets the value of a given key as a Boolean (Inherited from Document.) | |
| GetDate |
Gets the value of a given key as a DateTimeOffset (Inherited from Document.) | |
| GetDictionary |
Gets the value of a given key as a dictionary
| |
| GetDouble |
Gets the value of a given key as a Double (Inherited from Document.) | |
| GetEnumerator | Returns an enumerator that iterates through the collection. (Inherited from Document.) | |
| GetFloat |
Gets the value of a given key as a Single (Inherited from Document.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetInt |
Gets the value of a given key as an Int32 (Inherited from Document.) | |
| GetLong |
Gets the value of a given key as an Int64 (Inherited from Document.) | |
| GetObject |
Gets the value of a given key as an untyped object
(Inherited from Document.) | |
| GetString |
Gets the value of a given key as a String (Inherited from Document.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Remove |
Removes the given key from this dictionary
| |
| Set(IDictionaryString, Object) |
Replaces the contents of this dictionary with the contents of the
given one
| |
| Set(String, Blob) |
Sets the given key to the given value
| |
| Set(String, MutableArray) |
Sets the given key to the given value
| |
| Set(String, MutableDictionary) |
Sets the given key to the given value
| |
| Set(String, Boolean) |
Sets the given key to the given value
| |
| Set(String, DateTimeOffset) |
Sets the given key to the given value
| |
| Set(String, Double) |
Sets the given key to the given value
| |
| Set(String, Int32) |
Sets the given key to the given value
| |
| Set(String, Int64) |
Sets the given key to the given value
| |
| Set(String, Object) |
Sets the given key to the given value
| |
| Set(String, Single) |
Sets the given key to the given value
| |
| Set(String, String) |
Sets the given key to the given value
| |
| ToDictionary |
Converts this object to a standard .NET string to object
DictionaryTKey, TValue (Inherited from Document.) | |
| ToMutable |
Creates a mutable version of a document (i.e. one that
can be edited)
(Overrides DocumentToMutable.) | |
| ToString |
Returns a string that represents the current object.
(Overrides DocumentToString.) |