ICollection(TKey).Clear Method

SortedDictionary(Of TKey, TValue).KeyCollection.ICollection(Of TKey).Clear Method

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

Removes all items from the ICollection(Of T). This implementation always throws a NotSupportedException.

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

'Declaration
Private Sub Clear Implements ICollection(Of TKey).Clear

Implements

ICollection(Of T).Clear

ExceptionCondition
NotSupportedException

Always thrown; the collection is read-only.

The Count property is set to 0, and references to other objects from elements of the collection are also released.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft