System::Collections::Concurrent::ConcurrentDictionary::TryAdd method
ConcurrentDictionary::TryAdd method
Försöker lägga till nyckel/värde-par i ordboken.
bool System::Collections::Concurrent::ConcurrentDictionary<TKey, TValue>::TryAdd(const TKey &key, const TValue &value)
| Parameter | Type | Beskrivning |
|---|---|---|
| nyckel | const TKey& | Nyckel att lägga till. |
| value | const TValue& | Värde att lägga till. |
ReturnValue
Sant om nyckel/värde‑paret lades till framgångsrikt, annars falskt.
Se även
- Class ConcurrentDictionary
- Namespace System::Collections::Concurrent
- Library Aspose.Page for C++