docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IReadOnlyDictionary<TK, T>

    A read-only dictionary that raises an event whenever an item is added, removed, or modified.

    Inherited Members
    IEnumerable<T>.GetEnumerator()
    Namespace: VivoxUnity
    Assembly: VivoxUnity.dll
    Syntax
    public interface IReadOnlyDictionary<TK, T> : IEnumerable<T>, IEnumerable
    Type Parameters
    Name Description
    TK

    The key type.

    T

    The value type.

    Properties

    Count

    The number of items in the collection.

    Declaration
    int Count { get; }
    Property Value
    Type Description
    int

    this[TK]

    The value for a particular key.

    Declaration
    T this[TK key] { get; }
    Parameters
    Type Name Description
    TK key

    The key.

    Property Value
    Type Description
    T

    The value for the key.

    Keys

    All the keys.

    Declaration
    ICollection<TK> Keys { get; }
    Property Value
    Type Description
    ICollection<TK>

    Methods

    ContainsKey(TK)

    Determines if a key is contained.

    Declaration
    bool ContainsKey(TK key)
    Parameters
    Type Name Description
    TK key

    The key.

    Returns
    Type Description
    bool

    True if the key is contained.

    Events

    AfterKeyAdded

    Raised when an item is added.

    Declaration
    event EventHandler<KeyEventArg<TK>> AfterKeyAdded
    Event Type
    Type Description
    EventHandler<KeyEventArg<TK>>

    AfterValueUpdated

    Raised after a value has been updated.

    Declaration
    event EventHandler<ValueEventArg<TK, T>> AfterValueUpdated
    Event Type
    Type Description
    EventHandler<ValueEventArg<TK, T>>

    BeforeKeyRemoved

    Raised when an item is about to be removed.

    Declaration
    event EventHandler<KeyEventArg<TK>> BeforeKeyRemoved
    Event Type
    Type Description
    EventHandler<KeyEventArg<TK>>
    In This Article
    Back to top
    Copyright © 2025 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)