docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetStoreItemsByTag

    GetStoreItemsByTag(Tag, ICollection<BaseTransaction>)

    Adds all BaseTransaction items in this Store with specified Tag set to Collection.

    Declaration
    public int GetStoreItemsByTag(Tag tag, ICollection<BaseTransaction> target)
    Parameters
    Type Name Description
    Tag tag

    Desired Tag to be queried by this method.

    ICollection<BaseTransaction> target

    Collection to place resultant BaseTransaction items into.

    Returns
    Type Description
    int

    The number of BaseTransaction items added.

    Exceptions
    Type Condition
    ArgumentNullException

    Throws if tag or target is null.

    GetStoreItemsByTag(Tag)

    Returns an array of the BaseTransaction items in this Store with specified Tag set.

    Declaration
    public BaseTransaction[] GetStoreItemsByTag(Tag tag)
    Parameters
    Type Name Description
    Tag tag

    Desired Tag to be queried by this method.

    Returns
    Type Description
    BaseTransaction[]

    An array of BaseTransaction items in this Store.

    Exceptions
    Type Condition
    ArgumentNullException

    Throws if Tag is null.

    GetStoreItemsByTag(string)

    Returns an array of the BaseTransaction items in this Store with specified Tag set.

    Declaration
    public BaseTransaction[] GetStoreItemsByTag(string key)
    Parameters
    Type Name Description
    string key

    Desired Tag identifier string to be added to the output array.

    Returns
    Type Description
    BaseTransaction[]

    An array of BaseTransaction items in this Store.

    Exceptions
    Type Condition
    ArgumentException

    Throws if the catalog key is null or empty or not found in this Store.

    GetStoreItemsByTag(ICollection<Tag>, ICollection<BaseTransaction>)

    Updates Collection of all BaseTransaction items in this Store with any of the specified Tag set.

    Declaration
    public int GetStoreItemsByTag(ICollection<Tag> tags, ICollection<BaseTransaction> target)
    Parameters
    Type Name Description
    ICollection<Tag> tags

    Collection of desired Tag to be added to the output Collection.

    ICollection<BaseTransaction> target

    Collection to place resultant BaseTransaction items into.

    Returns
    Type Description
    int

    The number of BaseTransaction items added.

    Exceptions
    Type Condition
    ArgumentNullException

    Throws if tags or target is null.

    ArgumentException

    Throws if any Tag in tags Collection is null.

    GetStoreItemsByTag(ICollection<Tag>)

    Returns an array of all BaseTransaction items in this Store with any of the specified Tag set.

    Declaration
    public BaseTransaction[] GetStoreItemsByTag(ICollection<Tag> tags)
    Parameters
    Type Name Description
    ICollection<Tag> tags

    Collection of desired Tag to be added to the output array.

    Returns
    Type Description
    BaseTransaction[]

    An array of BaseTransaction items in this Store matching caregories request.

    Exceptions
    Type Condition
    ArgumentNullException

    Throws if tags is null.

    ArgumentException

    Throws if any Tag in Tags Collection is null.

    GetStoreItemsByTag(ICollection<string>, ICollection<BaseTransaction>)

    Adds all BaseTransaction items in this Store with any of the specified Tag set to Collection.

    Declaration
    public int GetStoreItemsByTag(ICollection<string> tagKeys, ICollection<BaseTransaction> target)
    Parameters
    Type Name Description
    ICollection<string> tagKeys

    Collection of desired Tag identifiers to be added to the target Collection.

    ICollection<BaseTransaction> target

    Collection to place resultant BaseTransaction items into.

    Returns
    Type Description
    int

    The number of BaseTransaction items added.

    Exceptions
    Type Condition
    ArgumentNullException

    Throws if either tagIds or target parameter is null.

    ArgumentException

    Throws if any of the catalog ids are null or empty or not found in this Store.

    GetStoreItemsByTag(ICollection<string>)

    Returns an array of all BaseTransaction items in this Store with any of the specified Tag set.

    Declaration
    public BaseTransaction[] GetStoreItemsByTag(ICollection<string> tagKeys)
    Parameters
    Type Name Description
    ICollection<string> tagKeys

    Collection of desired Tag identifiers to be added to the output array.

    Returns
    Type Description
    BaseTransaction[]

    An array of BaseTransaction items in this Store.

    Exceptions
    Type Condition
    ArgumentNullException

    Throws if Tag ids Collection is null.

    ArgumentException

    Throws if any of the catalog ids are null or empty or not found in this Store.

    In This Article
    Back to top
    Copyright © 2024 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)