Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Catalog Namespace / ICatalogRepository Interface / LoadForCategory Method / LoadForCategory(Int32,Boolean,Boolean,Int32,Int32,String) Method
The category Id for which to load the catalog nodes
If true on public (published) nodes are included
If true products assigned to groups that doesn't belong to user will not be listed.
Maximum number of rows to retrieve
Starting index from where to start retrieving
Sort expression to use for sorting the loaded products
In This Topic
    LoadForCategory(Int32,Boolean,Boolean,Int32,Int32,String) Method
    In This Topic
    Loads the collection of catalog node items for given category id
    Syntax

    Parameters

    categoryId
    The category Id for which to load the catalog nodes
    publicOnly
    If true on public (published) nodes are included
    groupRestrictions
    If true products assigned to groups that doesn't belong to user will not be listed.
    maximumRows
    Maximum number of rows to retrieve
    startRowIndex
    Starting index from where to start retrieving
    sortExpression
    Sort expression to use for sorting the loaded products

    Return Value

    The collection of catalog node items for given category id
    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