Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / IProductRepository Interface / LoadForProductTemplate Method / LoadForProductTemplate(Int32,String) Method
The given ProductTemplateId
The sort expression to use for sorting the loaded objects.
Version
LoadForProductTemplate(Int32,String) Method
Loads the Product objects associated with the given ProductTemplateId
Syntax

Parameters

productTemplateId
The given ProductTemplateId
sortExpression
The sort expression to use for sorting the loaded objects.

Return Value

A collection of Product objects associated with with the given ProductTemplateId
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