ICollection<(Of <(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<(Of <(T>)>).

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

Syntax

Sub Clear
void Clear()

Exceptions

Exception Condition
NotSupportedException

The ICollection<(Of <(T>)>) is read-only.

Remarks

Count must be set to 0, and references to other objects from elements of the collection must be released.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

ICollection<(Of <(T>)>) Interface

System.Collections.Generic Namespace

IsReadOnly