System::Collections::Concurrent::ConcurrentDictionary::TryAdd metod

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)
ParameterTypBeskrivning
nyckelconst TKey&Nyckel att lägga till.
värdeconst TValue&Värde att lägga till.

ReturnValue

Sant om nyckel/värde-paren lades till framgångsrikt, falskt annars.

Se även