TryAdd()
ConcurrentDictionary::TryAdd(const TKey&, const TValue&) method
Tries to add key/value pair into the dictionary.
bool System::Collections::Concurrent::ConcurrentDictionary<TKey, TValue>::TryAdd(const TKey &key, const TValue &value)
Arguments
Parameter | Type | Description |
---|---|---|
key | const TKey& | Key to add. |
value | const TValue& | Value to add. |
Return Value
True if key/value pair was added sucessfully, false otherwise.
See Also
- Class ConcurrentDictionary
- Namespace System::Collections::Concurrent
- Library Aspose.Slides