ConcurrentDictionary<TKey, TValue>::ICollection<KeyValuePair<TKey, TValue>>::Add Method (KeyValuePair<TKey, TValue>)

 

Adds an item to the collection.

Namespace:   System.Collections.Concurrent
Assembly:  mscorlib (in mscorlib.dll)

private:
virtual void Add(
	KeyValuePair<TKey, TValue> keyValuePair
) sealed = ICollection<KeyValuePair<TKey, TValue>>::Add

Parameters

keyValuePair
Type: System.Collections.Generic::KeyValuePair<TKey, TValue>

The KeyValuePair<TKey, TValue> to add to the dictionary.

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: