Attempts to add the specified key and value to the NamedMapTKey, TValue.
Namespace: Soss.Client.Concurrent
Assembly: soss_namedcache (in soss_namedcache.dll) Version: 6.2.0.0
Syntax
Parameters
- key
- Type: TKey
The key of the element to add. - value
- Type: TValue
The value of the element to add. The value can be a null reference (Nothing in Visual Basic) for reference types.
Return Value
Type: Booleantrue if the key/value pair was added to the NamedMapTKey, TValue successfully. If the key already exists, this method returns false.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if key is a null reference. |
See Also