DictionaryObject Class |
Namespace: Couchbase.Lite
public sealed class DictionaryObject : ReadOnlyDictionary, IDictionaryObject, IReadOnlyDictionary, IReadOnlyDictionaryFragment, IEnumerable<KeyValuePair<string, Object>>, IEnumerable, IDictionaryFragment
The DictionaryObject type exposes the following members.
| Name | Description | |
|---|---|---|
| DictionaryObject |
Default Constructor
| |
| DictionaryObject(IDictionaryString, Object) |
Creates a dictionary given the initial set of keys and values
from an existing dictionary
|
| Name | Description | |
|---|---|---|
| Count |
Gets the number of entries in the dictionary
(Overrides ReadOnlyDictionaryCount.) | |
| Item |
Gets the value of the given key, or lack thereof,
wrapped inside of a Fragment | |
| Keys |
Gets all the keys held by this dictionary
(Overrides ReadOnlyDictionaryKeys.) |
| Name | Description | |
|---|---|---|
| Contains |
Checks if a given key is present in the dictionary
(Overrides ReadOnlyDictionaryContains(String).) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| GetArray |
Gets the value of a given key as an IArray | |
| GetBlob |
Gets the value of a given key as a Blob (Overrides ReadOnlyDictionaryGetBlob(String).) | |
| GetBoolean |
Gets the value of a given key as a Boolean (Overrides ReadOnlyDictionaryGetBoolean(String).) | |
| GetDate |
Gets the value of a given key as a DateTimeOffset (Overrides ReadOnlyDictionaryGetDate(String).) | |
| GetDictionary |
Gets the value of a given key as a dictionary
| |
| GetDouble |
Gets the value of a given key as a Double (Overrides ReadOnlyDictionaryGetDouble(String).) | |
| GetEnumerator |
Returns an enumerator that iterates through the collection.
(Overrides ReadOnlyDictionaryGetEnumerator.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetInt |
Gets the value of a given key as an Int32 (Overrides ReadOnlyDictionaryGetInt(String).) | |
| GetLong |
Gets the value of a given key as an Int64 (Overrides ReadOnlyDictionaryGetLong(String).) | |
| GetObject |
Gets the value of a given key as an untyped object
(Overrides ReadOnlyDictionaryGetObject(String).) | |
| GetString |
Gets the value of a given key as a String (Overrides ReadOnlyDictionaryGetString(String).) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Remove |
Removes the given key from this dictionary
| |
| Set(IDictionaryString, Object) |
Replaces the contents of this dictionary with the contents of the
given one
| |
| Set(String, Object) |
Sets the given key to the given value
| |
| ToDictionary |
Converts this object to a standard .NET string to object
IDictionaryTKey, TValue (Overrides ReadOnlyDictionaryToDictionary.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| AnyAndEveryKeyValuePairString, Object |
Returns whether or not the collection has at least one item AND at least one item
matching the given pattern
(Defined by LinqExtensionMethods.) |