Dictionary<TKey, TValue>.ValueCollection.ICollection<TValue>.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<T>. This implementation always throws NotSupportedException.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| NotSupportedException | Always thrown. |
Count is set to zero, and references to other objects from elements of the collection are also released.
Show: