Show / Hide Table of Contents

Interface IFragment

An interface representing a readonly entry in a key-value path on an object.

Inherited Members
IArrayFragment.this[int]
IDictionaryFragment.this[string]
Namespace: Couchbase.Lite
Assembly: Couchbase.Lite.dll
Syntax
public interface IFragment : IArrayFragment, IDictionaryFragment

Properties

| Improve this Doc View Source

Array

Gets the contained value as a ArrayObject

Declaration
ArrayObject Array { get; }
Property Value
Type Description
ArrayObject
| Improve this Doc View Source

Blob

Gets the contained value as a Blob

Declaration
Blob Blob { get; }
Property Value
Type Description
Blob
| Improve this Doc View Source

Boolean

Gets the contained value as a Boolean

Declaration
bool Boolean { get; }
Property Value
Type Description
bool
Remarks

The following process is used for evaluation:

Boolean values are evaluated as is null is false Non-zero number values are true Everything else is true

| Improve this Doc View Source

Date

Gets the contained value as a DateTimeOffset

Declaration
DateTimeOffset Date { get; }
Property Value
Type Description
DateTimeOffset
| Improve this Doc View Source

Dictionary

Gets the contained value as a DictionaryObject

Declaration
DictionaryObject Dictionary { get; }
Property Value
Type Description
DictionaryObject
| Improve this Doc View Source

Double

Gets the contained value as a Double

Declaration
double Double { get; }
Property Value
Type Description
double
Remarks

true will be converted to 1.0, and everything else that is non-numeric will be 0.0

| Improve this Doc View Source

Exists

Gets whether or not this object exists in the hierarchy

Declaration
bool Exists { get; }
Property Value
Type Description
bool
| Improve this Doc View Source

Float

Gets the contained value as a float

Declaration
float Float { get; }
Property Value
Type Description
float
Remarks

true will be converted to 1.0f, and everything else that is non-numeric will be 0.0f

| Improve this Doc View Source

Int

Gets the contained value as an int

Declaration
int Int { get; }
Property Value
Type Description
int
Remarks

true will be converted to 1, a Double value will be rounded, and everything else non-numeric will be 0

| Improve this Doc View Source

Long

Gets the contained value as an long

Declaration
long Long { get; }
Property Value
Type Description
long
Remarks

true will be converted to 1, a Double value will be rounded, and everything else non-numeric will be 0

| Improve this Doc View Source

String

Gets the contained value as a String

Declaration
string String { get; }
Property Value
Type Description
string
| Improve this Doc View Source

Value

Gets the value of the fragment as an untyped object

Declaration
object Value { get; }
Property Value
Type Description
object
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX