Class DocumentFragment
DocumentFragment provides access to a Document object. It also provides subscript access by key to the data values of the wrapped document.
Inheritance
System.Object
DocumentFragment
Implements
Namespace: Couchbase.Lite
Assembly: Couchbase.Lite.dll
Syntax
public sealed class DocumentFragment : object, IDictionaryFragment
Properties
| Improve this Doc View SourceDocument
Gets the Document from the document fragment
Declaration
public Document Document { get; }
Property Value
Type | Description |
---|---|
Document |
Exists
Gets whether or not this document is in the database
Declaration
public bool Exists { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item[String]
Gets the value of the given key, or lack thereof, wrapped inside of a IFragment
Declaration
public IFragment this[string key] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key to check |
Property Value
Type | Description |
---|---|
IFragment | The value of the given key, or lack thereof |