Méthode System::Collections::Concurrent::ConcurrentDictionary::TryAdd
ConcurrentDictionary::TryAdd method
Tente d’ajouter une paire clé/valeur dans le dictionnaire.
bool System::Collections::Concurrent::ConcurrentDictionary<TKey, TValue>::TryAdd(const TKey &key, const TValue &value)
| Paramètre | Type | Description |
|---|---|---|
| clé | const TKey& | Clé à ajouter. |
| valeur | const TValue& | Valeur à ajouter. |
ReturnValue
Vrai si la paire clé/valeur a été ajoutée avec succès, faux sinon.
Voir aussi
- Class ConcurrentDictionary
- Namespace System::Collections::Concurrent
- Library Aspose.Font for C++