docs.unity.cn
    Show / Hide Table of Contents

    Interface IKeyedProperties<TContainer, TKey>

    This interface provides access to an IProperty<TContainer> of a IPropertyBag<TContainer> by a key.

    Namespace: Unity.Properties
    Syntax
    public interface IKeyedProperties<TContainer, TKey>
    Type Parameters
    Name Description
    TContainer

    The container type to access.

    TKey

    The key type to access the property with.

    Methods

    TryGetProperty(ref TContainer, TKey, out IProperty<TContainer>)

    Gets the property associated with the specified name.

    Declaration
    bool TryGetProperty(ref TContainer container, TKey key, out IProperty<TContainer> property)
    Parameters
    Type Name Description
    TContainer container

    The container hosting the data.

    TKey key

    The key to lookup.

    IProperty<TContainer> property

    When this method returns, contains the property associated with the specified name, if the name is found; otherwise, null.

    Returns
    Type Description
    Boolean

    true if the INamedProperties<TContainer> contains a property with the specified name; otherwise, false.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, July 26, 2023