## ConcurrentDictionary::TryAdd method


Tries to add key/value pair into the dictionary.

```cpp
bool System::Collections::Concurrent::ConcurrentDictionary<TKey, TValue>::TryAdd(const TKey &key, const TValue &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| key | const TKey\& | Key to add. |
| value | const TValue\& | Value to add. |

### ReturnValue

True if key/value pair was added sucessfully, false otherwise.

## See Also

* Class [ConcurrentDictionary](../)
* Namespace [System::Collections::Concurrent](../../)
* Library [Aspose.Page for C++](../../../)
