Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Catalog Namespace / CatalogRepository Class / LoadForCategory Method / LoadForCategory(Int32,Boolean,Int32,Int32) Method
The category Id for which to load the catalog nodes
If true on public (published) nodes are included
Maximum number of rows to retrieve
Starting index from where to start retrieving
In This Topic
    LoadForCategory(Int32,Boolean,Int32,Int32) Method
    In This Topic
    Loads the collection of catalog node items for given category id
    Syntax
    [DataObjectMethod(DataObjectMethodType.Select)]
    public IList<CatalogNode> LoadForCategory( 
       int categoryId,
       bool publicOnly,
       int maximumRows,
       int startRowIndex
    )

    Parameters

    categoryId
    The category Id for which to load the catalog nodes
    publicOnly
    If true on public (published) nodes are included
    maximumRows
    Maximum number of rows to retrieve
    startRowIndex
    Starting index from where to start retrieving

    Return Value

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