Constructor MapValue
MapValue()
Initializes a new instance of MapValue that is empty
and has the default initial capacity.
Declaration
public MapValue()
See Also
MapValue(Int32)
Initializes a new instance of MapValue that is empty
and has the specified initial capacity.
Declaration
public MapValue(int capacity)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | capacity | The number of elements that the new MapValue can initially hold. |
Remarks
The capacity of MapValue is the number of key/value
pairs that MapValue can hold. As key and values are
added to MapValue, the capacity is automatically
increased as required.
MapValue(IEnumerable<KeyValuePair<String, FieldValue>>)
Initializes a new instance of MapValue that
contains elements from the specified collection of key-value
pairs.
Declaration
public MapValue(IEnumerable<KeyValuePair<string, FieldValue>> collection)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<KeyValuePair<String, FieldValue>> | collection | The collection whose elements are copied into the new MapValue. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | If
collection is null. |