Click or drag to resize

Fragment 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: 0.0.0
Syntax
C#
public class Fragment : IArrayFragment, IDictionaryFragment

The Fragment 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 Fragment
Public propertyItemString
Gets the value of the given key, or lack thereof, wrapped inside of a Fragment
Public propertyValue
Gets the value of the fragment as an untyped object (set will throw)
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 ArrayObject
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 DictionaryObject
Public methodToDouble
Gets the contained value as a Double
Public methodToFloat
Gets the contained value as a Single
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
Fields
  NameDescription
Protected field_index
The index into the parent for this fragment, if applicable
Protected field_key
The string key into the parent for this fragment, if applicable
Protected field_parent
The parent object of this fragment
Public fieldStatic memberNull
A "null" fragment object (i.e. one that represents "no value")
Top
See Also