Interface IMutableDictionary
An interface representing a writeable key value collection
Inherited Members
Namespace: Couchbase.Lite
Assembly: Couchbase.Lite.dll
Syntax
public interface IMutableDictionary : IDictionaryObject, IDictionaryFragment, IEnumerable<KeyValuePair<string, object>>, IEnumerable, IMutableDictionaryFragment
Properties
| Improve this Doc View Sourcethis[string]
Gets the value of the given key, or lack thereof, wrapped inside of a IMutableFragment
Declaration
IMutableFragment this[string key] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to check |
Property Value
| Type | Description |
|---|---|
| IMutableFragment | The value of the given key, or lack thereof |
Methods
| Improve this Doc View SourceGetArray(string)
Gets the value of a given key as an IMutableArray
Declaration
MutableArrayObject GetArray(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to check the value for |
Returns
| Type | Description |
|---|---|
| MutableArrayObject | The contained value, or |
GetDictionary(string)
Gets the value of a given key as a dictionary
Declaration
MutableDictionaryObject GetDictionary(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to check the value for |
Returns
| Type | Description |
|---|---|
| MutableDictionaryObject | The contained value, or |
Remove(string)
Removes the given key from this dictionary
Declaration
IMutableDictionary Remove(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to remove |
Returns
| Type | Description |
|---|---|
| IMutableDictionary | Itself for further processing |
SetArray(string, ArrayObject)
Sets the given key to the given value
Declaration
IMutableDictionary SetArray(string key, ArrayObject value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to set |
| ArrayObject | value | The value to set |
Returns
| Type | Description |
|---|---|
| IMutableDictionary | Itself for further processing |
SetBlob(string, Blob)
Sets the given key to the given value
Declaration
IMutableDictionary SetBlob(string key, Blob value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to set |
| Blob | value | The value to set |
Returns
| Type | Description |
|---|---|
| IMutableDictionary | Itself for further processing |
SetBoolean(string, bool)
Sets the given key to the given value
Declaration
IMutableDictionary SetBoolean(string key, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to set |
| bool | value | The value to set |
Returns
| Type | Description |
|---|---|
| IMutableDictionary | Itself for further processing |
SetData(IDictionary<string, object>)
Replaces the contents of this dictionary with the contents of the given one
Declaration
IMutableDictionary SetData(IDictionary<string, object> dictionary)
Parameters
| Type | Name | Description |
|---|---|---|
| IDictionary<string, object> | dictionary | The dictionary to replace the current contents with |
Returns
| Type | Description |
|---|---|
| IMutableDictionary | Itself for further processing |
SetDate(string, DateTimeOffset)
Sets the given key to the given value
Declaration
IMutableDictionary SetDate(string key, DateTimeOffset value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to set |
| DateTimeOffset | value | The value to set |
Returns
| Type | Description |
|---|---|
| IMutableDictionary | Itself for further processing |
SetDictionary(string, DictionaryObject)
Sets the given key to the given value
Declaration
IMutableDictionary SetDictionary(string key, DictionaryObject value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to set |
| DictionaryObject | value | The value to set |
Returns
| Type | Description |
|---|---|
| IMutableDictionary | Itself for further processing |
SetDouble(string, double)
Sets the given key to the given value
Declaration
IMutableDictionary SetDouble(string key, double value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to set |
| double | value | The value to set |
Returns
| Type | Description |
|---|---|
| IMutableDictionary | Itself for further processing |
SetFloat(string, float)
Sets the given key to the given value
Declaration
IMutableDictionary SetFloat(string key, float value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to set |
| float | value | The value to set |
Returns
| Type | Description |
|---|---|
| IMutableDictionary | Itself for further processing |
SetInt(string, int)
Sets the given key to the given value
Declaration
IMutableDictionary SetInt(string key, int value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to set |
| int | value | The value to set |
Returns
| Type | Description |
|---|---|
| IMutableDictionary | Itself for further processing |
SetJSON(string)
Replaces the contents of this dictionary with the contents of the given json string
Declaration
IMutableDictionary SetJSON(string json)
Parameters
| Type | Name | Description |
|---|---|---|
| string | json | The json string to replace the current contents with |
Returns
| Type | Description |
|---|---|
| IMutableDictionary | Itself for further processing |
Remarks
json string must be constructed from ToJSON
SetLong(string, long)
Sets the given key to the given value
Declaration
IMutableDictionary SetLong(string key, long value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to set |
| long | value | The value to set |
Returns
| Type | Description |
|---|---|
| IMutableDictionary | Itself for further processing |
SetString(string, string)
Sets the given key to the given value
Declaration
IMutableDictionary SetString(string key, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to set |
| string | value | The value to set |
Returns
| Type | Description |
|---|---|
| IMutableDictionary | Itself for further processing |
SetValue(string, object)
Sets the given key to the given value
Declaration
IMutableDictionary SetValue(string key, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to set |
| object | value | The value to set |
Returns
| Type | Description |
|---|---|
| IMutableDictionary | Itself for further processing |