Collections Collections
Collections Collections
DocFX + Singulink = ♥

Search Results for

    Method TryAdd

    TryAdd(TAlternateKey, TValue)

    Attempts to add the specified alternate key and value to the dictionary.

    Declaration
    public bool TryAdd(TAlternateKey key, TValue value)
    Parameters
    Type Name Description
    TAlternateKey key
    TValue value
    Returns
    Type Description
    bool

    true if the key and value were added; false if the dictionary already contains the key with a value that is still available.

    Exceptions
    Type Condition
    ObjectDisposedException

    The dictionary has been disposed.

    © Singulink. All rights reserved.