System::Collections::Concurrent::ConcurrentDictionary::TryAdd طريقة
ConcurrentDictionary::TryAdd method
يحاول إضافة زوج المفتاح/القيمة إلى القاموس.
bool System::Collections::Concurrent::ConcurrentDictionary<TKey, TValue>::TryAdd(const TKey &key, const TValue &value)
| معامل | نوع | الوصف |
|---|---|---|
| المفتاح | const TKey& | المفتاح للإضافة. |
| قيمة | const TValue& | القيمة للإضافة. |
ReturnValue
صحيح إذا تم إضافة زوج المفتاح/القيمة بنجاح، خطأ خلاف ذلك.
انظر أيضًا
- Class ConcurrentDictionary
- Namespace System::Collections::Concurrent
- Library Aspose.Font for C++