ConcurrentDictionary<TKey,TValue>.IDictionary.Item[Object] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the value associated with the specified key.
property System::Object ^ System::Collections::IDictionary::Item[System::Object ^] { System::Object ^ get(System::Object ^ key); void set(System::Object ^ key, System::Object ^ value); };
object System.Collections.IDictionary.Item[object key] { get; set; }
object? System.Collections.IDictionary.Item[object key] { get; set; }
member this.System.Collections.IDictionary.Item(obj) : obj with get, set
Property Item(key As Object) As Object Implements IDictionary.Item
Parameters
- key
- Object
The key of the value to get or set.
Property Value
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 ConcurrentDictionary<TKey,TValue>.
Implements
Exceptions
key
is null
.
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 ConcurrentDictionary<TKey,TValue>.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for