ConcurrentDictionary<TKey, TValue>::IDictionary::Item Property (Object^)
Gets or sets the value associated with the specified key.
Assembly: mscorlib (in mscorlib.dll)
private: property Object^ default[ Object^ key ] { virtual Object^ get(Object^ key) sealed = IDictionary::default::get; virtual void set(Object^ key, Object^ value) sealed = IDictionary::default::set; }
Parameters
- key
-
Type:
System::Object^
The key of the value to get or set.
Property Value
Type: System::Object^The value associated with the specified key, or null if key is not in the dictionary or key is of a type that is not assignable to the key type of the System.Collections.Concurrent::ConcurrentDictionary<TKey, TValue>.
Implements
IDictionary::Item[Object^]| Exception | Condition |
|---|---|
| ArgumentNullException | key is null. |
| ArgumentException | A value is being assigned, and key is of a type that is not assignable to the key type or the value type of the System.Collections.Concurrent::ConcurrentDictionary<TKey, TValue>. |
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1