System::Collections::Concurrent::ConcurrentDictionary::TryAdd method

ConcurrentDictionary::TryAdd method

辞書にキーと値のペアを追加しようとします。

bool System::Collections::Concurrent::ConcurrentDictionary<TKey, TValue>::TryAdd(const TKey &key, const TValue &value)
パラメーター説明
キーconst TKey&追加するキー。
valueconst TValue&追加する値。

ReturnValue

キー/値のペアが正常に追加された場合は true、そうでない場合は false。

参照