Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / IProductRepository Interface / LoadForCategory Method / LoadForCategory(Boolean,IList<ShopByChoice>,Int32,Boolean,Boolean,String,Int32,Int32) Method
If true products assigned to groups that doesn't belong to user will not be listed.
Restrict using shop by choices.
The ID of the category to load products for.
If true products are loaded from the current category and any of it's children.
If true only public (published) products are loaded. Default value is false
The sort expression to use for sorting the loaded objects.
Maximum number of rows to retrieve.
Starting index from where to start retrieving.
In This Topic
    LoadForCategory(Boolean,IList<ShopByChoice>,Int32,Boolean,Boolean,String,Int32,Int32) Method
    In This Topic
    Loads a collection of products from the given category.
    Syntax

    Parameters

    groupRestrictions
    If true products assigned to groups that doesn't belong to user will not be listed.
    choices
    Restrict using shop by choices.
    categoryId
    The ID of the category to load products for.
    recurse
    If true products are loaded from the current category and any of it's children.
    publicOnly
    If true only public (published) products are loaded. Default value is false
    sortExpression
    The sort expression to use for sorting the loaded objects.
    maximumRows
    Maximum number of rows to retrieve.
    startRowIndex
    Starting index from where to start retrieving.

    Return Value

    A collection of Product objects
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also