Click or drag to resize

ReadOnlyFragment Class

A class representing an arbitrary readonly entry in a key path (e.g. object["key"][index]["next_key"], etc)
Inheritance Hierarchy

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0125
Syntax
C#
public class ReadOnlyFragment : IReadOnlyArrayFragment, 
	IReadOnlyDictionaryFragment

The ReadOnlyFragment type exposes the following members.

Properties
  NameDescription
Public propertyExists
Gets whether or not this object exists in the hierarchy
Public propertyItemInt32
Gets the value of the given index, or lack thereof, wrapped inside of a ReadOnlyFragment
Public propertyItemString
Gets the value of the given key, or lack thereof, wrapped inside of a ReadOnlyFragment
Public propertyValue
Gets the raw contained value of this object
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
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 methodToArray
Gets the contained value as a ReadOnlyArray
Public methodToBlob
Gets the contained value as a Blob
Public methodToBoolean
Gets the contained value as a Boolean
Public methodToDate
Gets the contained value as a DateTimeOffset
Public methodToDictionary
Gets the contained value as a ReadOnlyDictionary
Public methodToDouble
Gets the contained value as a Double
Public methodToInt
Gets the contained value as an Int32
Public methodToLong
Gets the contained value as an Int64
Public methodToObject
Gets the contained value as an untyped object
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Top
See Also