SynchronizedReadOnlyCollection.System.Collections.Generic.ICollection<T>.Remove Method
Returns false and throws a NotSupportedException if called.
Namespace: System.Collections.Generic
Assembly: System.ServiceModel (in system.servicemodel.dll)
'Declaration
Private Function System.Collections.Generic.ICollection<T>.Remove ( _
value As T _
) As Boolean Implements ICollection(Of T).Remove
'Usage
Dim instance As SynchronizedReadOnlyCollection(Of T)
Dim value As T
Dim returnValue As Boolean
returnValue = CType(instance, ICollection(Of T)).Remove(value)
bool ICollection<T>.Remove (
T value
)
private:
virtual bool System.Collections.Generic.ICollection<T>.Remove (
T value
) sealed = ICollection<T>::Remove
Not applicable.
- value
The value to be removed from the collection.
false
Exception type | Condition |
---|---|
NotSupportedException |
Items cannot be removed from a read-only collection. |
The method returns false to indicate that the item was not removed from the 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