Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Catalog Namespace / ICatalogRepository Interface / LoadForCategory Method / LoadForCategory(Int32,Boolean,String) Method
The category Id for which to load the catalog nodes
If true on public (published) nodes are included
Sort expression to use for sorting the loaded products
In This Topic
    LoadForCategory(Int32,Boolean,String) Method
    In This Topic
    Loads the collection of catalog node items for given category id
    Syntax
    [DataObjectMethod(DataObjectMethodType.Select)]
    IList<CatalogNode> LoadForCategory( 
       int categoryId,
       bool publicOnly,
       string sortExpression
    )

    Parameters

    categoryId
    The category Id for which to load the catalog nodes
    publicOnly
    If true on public (published) nodes are included
    sortExpression
    Sort expression to use for sorting the loaded products

    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