Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ConcurrentDictionary<TKey, TValue>::IDictionary::Item Property (Object^)

.NET Framework (current version)
 

Gets or sets the value associated with the specified key.

Namespace:   System.Collections.Concurrent
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>.

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>.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show:
© 2017 Microsoft