Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Catalog Namespace / CatalogRepository Class / LoadForCategory Method / LoadForCategory(Int32,Boolean) Method
The category Id for which to load the catalog nodes
If true on public (published) nodes are included
In This Topic
    LoadForCategory(Int32,Boolean) 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
    )

    Parameters

    categoryId
    The category Id for which to load the catalog nodes
    publicOnly
    If true on public (published) nodes are included

    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