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& | 追加するキー。 |
| value | const TValue& | 追加する値。 |
ReturnValue
キー/値のペアが正常に追加された場合は true、そうでない場合は false。
参照
- Class ConcurrentDictionary
- Namespace System::Collections::Concurrent
- Library Aspose.Page for C++