Läs på engelska

Dela via


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)

Syntax

C#
bool ICollection<T>.Remove (
    T value
)

Parameters

  • value
    The value to be removed from the collection.

Return Value

false

Exceptions

Exception type Condition

NotSupportedException

Items cannot be removed from a read-only collection.

Remarks

The method returns false to indicate that the item was not removed from the read-only collection.

Platforms

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

SynchronizedReadOnlyCollection Class
SynchronizedReadOnlyCollection Members
System.Collections.Generic Namespace