Click or drag to resize

Body Class

A request/response/document body, stored as either JSON, IDictionary>String,Object>, or IList>object>
Inheritance Hierarchy
SystemObject
  Couchbase.LiteBody

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
public sealed class Body

The Body type exposes the following members.

Constructors
Methods
  NameDescription
Public methodAsJson
Returns a serialized JSON byte enumerable object containing the properties of this object.
Public methodAsJSONString
Returns a serialized JSON string containing the properties of this object
Public methodAsObject
Gets the deserialized object containing the properties of the JSON
Public methodAsPrettyJson
Returns a serialized JSON byte enumerable object containing the properties of this object in human readable form.
Public methodGetProperties
Gets the properties from this object
Public methodGetPropertyForKey(String)
Gets the property for the given key
Public methodGetPropertyForKeyT(String, T)
Gets the cast property for the given key, or uses the default value if not found
Public methodHasValueForKey
Determines whether this instance has value the specified key.
Public methodIsValidJSON
Determines whether this instance is valid JSON.
Public methodSetPropertyForKey
Sets the property for a given key.
Public methodToString (Overrides ObjectToString.)
Public methodTryGetPropertyForKeyT
Tries the get property for key and cast it to T
Top
See Also