Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Catalog Namespace / CatalogRepository Class / 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
Version
LoadForCategory(Int32,Boolean,String) Method
Loads the collection of catalog node items for given category id
Syntax
[DataObjectMethod(DataObjectMethodType.Select)]
public 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