.NET Client Documentation
5.1.1
Search Results for

    Show / Hide Table of Contents

    RetainAllAsync Method

    RetainAllAsync<TItem>(ICollection<TItem>)

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

    Declaration
    Task<bool> RetainAllAsync<TItem>(ICollection<TItem> items)
        where TItem : T
    Parameters
    ICollection<TItem> items

    The c.

    Returns
    Task<Boolean>

    true if this collection changed, false otherwise.

    Type Parameters
    TItem

    type of elements

    Remarks

    In other words, removes from this collection all of its elements that are not contained in the specified collection.

    In This Article
    Back to top Copyright © 2010-2022 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.