Retains only the elements in this set that are contained in the specified collection.

Namespace: Iesi.Collections.Generic
Assembly: Iesi.Collections (in Iesi.Collections.dll) Version: 1.0.1.0 (3.2.0.4000)

Syntax

C#
public bool RetainAll(
	ICollection<T> c
)
Visual Basic
Public Function RetainAll ( _
	c As ICollection(Of T) _
) As Boolean
Visual C++
public:
virtual bool RetainAll(
	ICollection<T>^ c
) sealed

Parameters

c
Type: System.Collections.Generic..::..ICollection<(Of <(<'T>)>)>
Collection that defines the set of elements to be retained.

Return Value

nothing

Exceptions

ExceptionCondition
System..::..NotSupportedException is always thrown

See Also