ICollection(TValue).Add Method

Dictionary<TKey, TValue>.ValueCollection.ICollection<TValue>.Add Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Adds an item to the ICollection<T>. This implementation always throws NotSupportedException.

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

void ICollection<TValue>.Add(
	TValue item
)

Parameters

item
Type: TValue
The object to add to the ICollection<T>.

Implements

ICollection<T>.Add(T)

ExceptionCondition
NotSupportedException

Always thrown.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft