Foley .NET Utilities Class Library

IList2.Remove Method (ICollection)

When implemented by a class, removes the first occurrence of each element of the specified ICollection from the list.

[Visual Basic]
Function Remove( _
   ByVal collection As ICollection _
) As Boolean
[C#]
bool Remove(
   ICollection collection
);

Parameters

collection
The ICollection used to determine what elements to remove from the list.

Return Value

true if the list is modified; otherwise false.

Exceptions

Exception TypeCondition
System.NotSupportedException

The list is read-only.

-or-

The list has a fixed size.

See Also

IList2 Interface | IList2 Members | Foley.Utilities.Collections Namespace | IList2.Remove Overload List