{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method Remove | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Remove

    Remove(TKey)

    Removes a key and its associated value(s).

    Declaration
    public int Remove(TKey key)
    Parameters
    Type Name Description
    TKey key

    The key to remove.

    Returns
    Type Description
    int

    The number of removed key-value pairs. If the key was not present, returns 0.

    Remove<TValueEQ>(TKey, TValueEQ)

    Removes all key-value pairs with a particular key and a particular value.

    Declaration
    public void Remove<TValueEQ>(TKey key, TValueEQ value) where TValueEQ : unmanaged, IEquatable<TValueEQ>
    Parameters
    Type Name Description
    TKey key

    The key of the key-value pairs to remove.

    TValueEQ value

    The value of the key-value pairs to remove.

    Type Parameters
    Name Description
    TValueEQ

    The type of the value.

    Remarks

    Removes all key-value pairs which have a particular key and which also have a particular value. In other words: (key AND value) rather than (key OR value).

    Remove(NativeParallelMultiHashMapIterator<TKey>)

    Removes a single key-value pair.

    Declaration
    public void Remove(NativeParallelMultiHashMapIterator<TKey> it)
    Parameters
    Type Name Description
    NativeParallelMultiHashMapIterator<TKey> it

    An iterator representing the key-value pair to remove.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the iterator is invalid.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)