Retains the first occurrence of each element of the specified ICollection from the set.
[Visual Basic]
Overridable Public Function Retain( _
ByVal collection As ICollection _
) As Boolean Implements _
ISet.Retain
true
if the set is modified; otherwise false
.
Exception Type | Condition |
---|---|
System.NotSupportedException | The set is read-only. -or-The set has a fixed size. |
SetBase Class | SetBase Members | Foley.Utilities.Collections Namespace