Click or drag to resize

ReadOnlyDocument Class

A class representing a document which cannot be altered
Inheritance Hierarchy

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0382
Syntax
C#
public class ReadOnlyDocument : IReadOnlyDictionary, 
	IReadOnlyDictionaryFragment, IReadOnlyCollection<KeyValuePair<string, Object>>, 
	IEnumerable<KeyValuePair<string, Object>>, IEnumerable, 
	IDisposable

The ReadOnlyDocument type exposes the following members.

Properties
  NameDescription
Public propertyCount
Gets the number of top level entries in this document
Public propertyDatabase
Gets the database that this document belongs to, if any
Public propertyId
Gets this document's unique ID
Public propertyIsDeleted
Gets whether or not this document is deleted
Public propertyItem
Accesses JSON paths in the document to get their values
Public propertyKeys
Gets all the keys present in this document
Public propertySequence
Gets the sequence of this document (a unique incrementing number identifying its status in a database)
Top
Methods
  NameDescription
Public methodContains
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Used for disposing this object
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Finalizer
(Overrides ObjectFinalize.)
Public methodGetArray
Public methodGetBlob
Public methodGetBoolean
Public methodGetDate
Public methodGetDictionary
Public methodGetDouble
Public methodGetEnumerator
Public methodGetFloat
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetInt
Public methodGetLong
Public methodGetObject
Public methodGetString
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToDictionary
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Top
Fields
  NameDescription
Protected field_dict
Top
See Also