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

ConcurrentDictionary::TryAdd method

키/값 쌍을 사전에 추가하려 시도합니다.

bool System::Collections::Concurrent::ConcurrentDictionary<TKey, TValue>::TryAdd(const TKey &key, const TValue &value)
매개변수형식설명
keyconst TKey&추가할 키.
valueconst TValue&추가할 값.

ReturnValue

키/값 쌍이 성공적으로 추가되면 true, 그렇지 않으면 false.

또 보기