SortedDictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.Add(TKey) SortedDictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.Add(TKey) SortedDictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.Add(TKey) Method

Definition

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

 virtual void System.Collections.Generic.ICollection<TKey>.Add(TKey item) = System::Collections::Generic::ICollection<TKey>::Add;
void ICollection<TKey>.Add (TKey item);
Sub Add (item As TKey) Implements ICollection(Of TKey).Add

Parameters

item
TKey TKey TKey

The object to add to the ICollection<T>.

Implements

Exceptions

Always thrown; the collection is read-only.

Applies to

See also