| IHCollectionTRetainAllTE Method |
Retains only the elements in this collection that are contained in the specified collection (optional operation).
Namespace:
Hazelcast.Core
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.12.3
Syntax bool RetainAll<TE>(
ICollection<TE> c
)
Function RetainAll(Of TE) (
c As ICollection(Of TE)
) As Boolean
generic<typename TE>
bool RetainAll(
ICollection<TE>^ c
)
abstract RetainAll :
c : ICollection<'TE> -> bool
Parameters
- c
- Type: System.Collections.GenericICollectionTE
The c.
Type Parameters
- TE
- type of elements
Return Value
Type:
Booleantrue if this collection changed,
false otherwise.
Remarks
Retains only the elements in this collection that are contained in the specified collection (optional operation).
In other words, removes from this collection all of its elements that are not contained in the specified collection
See Also