IList<Product> LoadForCategory( int categoryId, bool recurse, bool publicOnly, string sortExpression, int maximumRows, int startRowIndex )
Parameters
- categoryId
- The ID of the category to load products for.
- recurse
- If true products are loaded from the current category and any of it's children.
- publicOnly
- If true only public (published) products are loaded. Default value is false
- sortExpression
- The sort expression to use for sorting the loaded objects.
- maximumRows
- Maximum number of rows to retrieve.
- startRowIndex
- Starting index from where to start retrieving.
Return Value
A collection of Product objects