docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetStoreItemsByCategory

    GetStoreItemsByCategory(Category, ICollection<BaseTransaction>)

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

    Declaration
    public int GetStoreItemsByCategory(Category category, ICollection<BaseTransaction> target)
    Parameters
    Type Name Description
    Category category

    Desired Category 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 category or target is null.

    GetStoreItemsByCategory(Category)

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

    Declaration
    public BaseTransaction[] GetStoreItemsByCategory(Category category)
    Parameters
    Type Name Description
    Category category

    Desired Category to be queried by this method.

    Returns
    Type Description
    BaseTransaction[]

    An array of BaseTransaction items in this Store.

    Exceptions
    Type Condition
    ArgumentNullException

    Throws if Category is null.

    GetStoreItemsByCategory(string)

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

    Declaration
    public BaseTransaction[] GetStoreItemsByCategory(string id)
    Parameters
    Type Name Description
    string id

    Desired Category id 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 id is null or empty or not found in this Store.

    GetStoreItemsByCategory(ICollection<Category>, ICollection<BaseTransaction>)

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

    Declaration
    public int GetStoreItemsByCategory(ICollection<Category> categories, ICollection<BaseTransaction> target)
    Parameters
    Type Name Description
    ICollection<Category> categories

    Collection of desired Category 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 categories or target is null.

    ArgumentException

    Throws if any Category in categories Collection is null.

    GetStoreItemsByCategory(ICollection<Category>)

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

    Declaration
    public BaseTransaction[] GetStoreItemsByCategory(ICollection<Category> categories)
    Parameters
    Type Name Description
    ICollection<Category> categories
    Returns
    Type Description
    BaseTransaction[]

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

    Exceptions
    Type Condition
    ArgumentNullException

    Throws if categories is null.

    ArgumentException

    Throws if any Category in categories Collection is null.

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

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

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

    Collection of desired Category id strings 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 categoryIds or target parameter is null.

    ArgumentException

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

    GetStoreItemsByCategory(ICollection<string>)

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

    Declaration
    public BaseTransaction[] GetStoreItemsByCategory(ICollection<string> categoryIds)
    Parameters
    Type Name Description
    ICollection<string> categoryIds

    Collection of desired Category id strings 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 Category 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)