SynchronizedReadOnlyCollection.System.Collections.Generic.ICollection<T>.Clear Method
Throws a NotSupportedException if called.
Namespace: System.Collections.Generic
Assembly: System.ServiceModel (in system.servicemodel.dll)
'Declaration
Private Sub System.Collections.Generic.ICollection<T>.Clear Implements ICollection(Of T).Clear
'Usage
Dim instance As SynchronizedReadOnlyCollection(Of T)
CType(instance, ICollection(Of T)).Clear
C#
void ICollection<T>.Clear ()
private:
virtual void System.Collections.Generic.ICollection<T>.Clear () sealed = ICollection<T>::Clear
Not applicable.
Exception type | Condition |
---|---|
NotSupportedException |
Items cannot be cleared from a read-only collection. |
Items cannot be cleared from a read-only collection.
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Supported in: 3.0
SynchronizedReadOnlyCollection Class
SynchronizedReadOnlyCollection Members
System.Collections.Generic Namespace