Metodo System::Collections::Concurrent::ConcurrentDictionary::TryAdd

ConcurrentDictionary::TryAdd method

Prova ad aggiungere una coppia chiave/valore nel dizionario.

bool System::Collections::Concurrent::ConcurrentDictionary<TKey, TValue>::TryAdd(const TKey &key, const TValue &value)
ParametroTipoDescrizione
chiaveconst TKey&Chiave da aggiungere.
valoreconst TValue&Valore da aggiungere.

ReturnValue

True se la coppia chiave/valore è stata aggiunta con successo, false altrimenti.

Vedi anche