ICollection<T>.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>.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| NotSupportedException | The ICollection<T> is read-only. |
Count must be set to 0, and references to other objects from elements of the collection must be released.
Show: