ICollection(TKey).Add Method

SortedDictionary(Of TKey, TValue).KeyCollection.ICollection(Of TKey).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(Of T). This implementation always throws a NotSupportedException.

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

'Declaration
Private Sub Add ( _
	item As TKey _
) Implements ICollection(Of TKey).Add

Parameters

item
Type: TKey
The object to add to the ICollection(Of T).

Implements

ICollection(Of T).Add(T)

ExceptionCondition
NotSupportedException

Always thrown; the collection is read-only.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft