System::Collections::Concurrent::ConcurrentDictionary::TryAdd-Methode
ConcurrentDictionary::TryAdd method
Versucht, ein Schlüssel/Wert-Paar zum Wörterbuch hinzuzufügen.
bool System::Collections::Concurrent::ConcurrentDictionary<TKey, TValue>::TryAdd(const TKey &key, const TValue &value)
| Parameter | Typ | Beschreibung |
|---|---|---|
| Schlüssel | const TKey& | Schlüssel zum Hinzufügen. |
| Wert | const TValue& | Wert zum Hinzufügen. |
ReturnValue
True, wenn das Schlüssel/Wert‑Paar erfolgreich hinzugefügt wurde, sonst false.
Siehe auch
- Class ConcurrentDictionary
- Namespace System::Collections::Concurrent
- Library Aspose.Font for C++