.NET Client Documentation
5.3.0
Search Results for

    Show / Hide Table of Contents

    CompareAndSetAsync Method

    CompareAndSetAsync(T, T)

    Compares the value for equality and, if equal, replaces the current value.

    Declaration
    Task<bool> CompareAndSetAsync(T comparand, T value)
    Parameters
    T comparand

    The value that is compared to the current value.

    T value

    The value that replaces the current value if the comparison results in equality.

    Returns
    Task<bool>

    The updated value.

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