Interface IFragment
An interface representing a readonly entry in a key-value path on an object.
Namespace: Couchbase.Lite
Assembly: Couchbase.Lite.dll
Syntax
public interface IFragment : IArrayFragment, IDictionaryFragment
Properties
| Improve this Doc View SourceArray
Gets the contained value as a ArrayObject
Declaration
ArrayObject Array { get; }
Property Value
Type | Description |
---|---|
ArrayObject |
Blob
Gets the contained value as a Blob
Declaration
Blob Blob { get; }
Property Value
Type | Description |
---|---|
Blob |
Boolean
Gets the contained value as a Boolean
Declaration
bool Boolean { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
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
Date
Gets the contained value as a System.DateTimeOffset
Declaration
DateTimeOffset Date { get; }
Property Value
Type | Description |
---|---|
System.DateTimeOffset |
Dictionary
Gets the contained value as a DictionaryObject
Declaration
DictionaryObject Dictionary { get; }
Property Value
Type | Description |
---|---|
DictionaryObject |
Double
Gets the contained value as a Double
Declaration
double Double { get; }
Property Value
Type | Description |
---|---|
System.Double |
Remarks
true
will be converted to 1.0, and everything else that
is non-numeric will be 0.0
Exists
Gets whether or not this object exists in the hierarchy
Declaration
bool Exists { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Float
Gets the contained value as a System.Single
Declaration
float Float { get; }
Property Value
Type | Description |
---|---|
System.Single |
Remarks
true
will be converted to 1.0f, and everything else that
is non-numeric will be 0.0f
Int
Gets the contained value as an System.Int32
Declaration
int Int { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
true
will be converted to 1, a Double value
will be rounded, and everything else non-numeric will be 0
Long
Gets the contained value as an System.Int64
Declaration
long Long { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Remarks
true
will be converted to 1, a Double value
will be rounded, and everything else non-numeric will be 0
String
Gets the contained value as a String
Declaration
string String { get; }
Property Value
Type | Description |
---|---|
System.String |
Value
Gets the value of the fragment as an untyped object
Declaration
object Value { get; }
Property Value
Type | Description |
---|---|
System.Object |