Dynamicweb.eCommerce.Products Namespace > Product Class > RelatedGroups Property : RelatedGroups(Boolean) Property |
'Declaration
Public Overloads Property RelatedGroups( _ ByVal isfrontend As Boolean _ ) As ProductRelatedGroupCollection
public ProductRelatedGroupCollection RelatedGroups( bool isfrontend ) {get; set;}
class MyPage : System.Web.UI.Page { private Product prod; public void ShowRelatedGroupList() { if (prod.RelatedGroups.Count > 0) { foreach (ProductRelatedGroup prg in prod.RelatedGroups(true)) { //TODO: insert your code here } } } }
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