Document Class |
Namespace: Couchbase.Lite
public class Document : IDictionaryObject, IDictionaryFragment, IEnumerable<KeyValuePair<string, Object>>, IEnumerable, IDisposable
The Document type exposes the following members.
Name | Description | |
---|---|---|
Count |
Gets the number of entries in this dictionary
| |
Id |
Gets this document's unique ID
| |
Item |
Gets the value of the given key, or lack thereof,
wrapped inside of a IFragment | |
Keys |
Gets all the keys held by this dictionary
| |
Sequence |
Gets the sequence of this document (a unique incrementing number
identifying its status in a database)
|
Name | Description | |
---|---|---|
Contains |
Checks if a given key is present in the dictionary
| |
Dispose |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
| |
Equals | Determines whether the specified object is equal to the current object. (Overrides ObjectEquals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetArray |
Gets the value of a given key as an IArray | |
GetBlob |
Gets the value of a given key as a Blob | |
GetBoolean |
Gets the value of a given key as a Boolean | |
GetDate |
Gets the value of a given key as a DateTimeOffset | |
GetDictionary |
Gets the value of a given key as a readonly dictionary
| |
GetDouble |
Gets the value of a given key as a Double | |
GetEnumerator | Returns an enumerator that iterates through the collection. | |
GetFloat |
Gets the value of a given key as a Single | |
GetHashCode | Serves as the default hash function. (Overrides ObjectGetHashCode.) | |
GetInt |
Gets the value of a given key as an Int32 | |
GetLong |
Gets the value of a given key as an Int64 | |
GetString |
Gets the value of a given key as a String | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue |
Gets the value of a given key as an untyped object
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToDictionary |
Converts this object to a standard .NET string to object
DictionaryTKey, TValue | |
ToMutable |
Creates a mutable version of a document (i.e. one that
can be edited)
| |
ToString | Returns a string that represents the current object. (Overrides ObjectToString.) |