Document Class |
Namespace: Couchbase.Lite
public class Document : IDictionaryObject, IDictionaryFragment, IReadOnlyCollection<KeyValuePair<string, Object>>, IEnumerable<KeyValuePair<string, Object>>, IEnumerable, IDisposable
The Document type exposes the following members.
Name | Description | |
---|---|---|
![]() | Count |
Gets the number of top level entries in this document
|
![]() | Database |
Gets the database that this document belongs to, if any
|
![]() | Id |
Gets this document's unique ID
|
![]() | IsDeleted |
Gets whether or not this document is deleted
|
![]() | Item |
Accesses JSON paths in the document to get their values
|
![]() | Keys |
Gets all the keys present in this document
|
![]() | 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. (Inherited from 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. (Inherited from Object.) |
![]() | GetInt |
Gets the value of a given key as an Int32 |
![]() | GetLong |
Gets the value of a given key as an Int64 |
![]() | GetObject |
Gets the value of a given key as an untyped object
|
![]() | GetString |
Gets the value of a given key as a String |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToDictionary |
Converts this object to a standard .NET string to object
Dictionary<TKey, 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 Object.ToString().) |