SynchronizedReadOnlyCollection<(Of <(T>)>).ICollection<(Of <(T>)>).Clear Method

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

Throws a NotSupportedException if called.

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

Syntax

Private Sub Clear Implements ICollection(Of T).Clear
void ICollection<T>.Clear()

Implements

ICollection<(Of <(T>)>)..::.Clear()()()

Exceptions

Exception Condition
NotSupportedException

Items cannot be cleared from a read-only collection.

Remarks

Items cannot be cleared from a read-only collection.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

SynchronizedReadOnlyCollection<(Of <(T>)>) Class

System.Collections.Generic Namespace