System::Collections::Concurrent::ConcurrentDictionary::TryAdd-methode

ConcurrentDictionary::TryAdd method

Probeert een sleutel/waarde-paar toe te voegen aan de dictionary.

bool System::Collections::Concurrent::ConcurrentDictionary<TKey, TValue>::TryAdd(const TKey &key, const TValue &value)
ParameterTypeBeschrijving
sleutelconst TKey&Sleutel om toe te voegen.
valueconst TValue&Waarde om toe te voegen.

ReturnValue

True als het sleutel/waarde-paar succesvol werd toegevoegd, false anders.

Zie ook