Dynamicweb 8 Documentation
GroupCollection Class
Members  Example 

Collection of product groups
Object Model
GroupCollection ClassGroup Class
Syntax
Example
class MyPage : System.Web.UI.Page
{
   private List<string> GetGroupsBreadcrumb(string shopFilter, string[] items)
   {
       List<string> labels = new List<string>();
       GroupCollection gc = default(GroupCollection);
       string shopId = shopFilter;

       if (string.IsNullOrEmpty(shopFilter) || string.Compare(shopFilter, "ALL", true) == 0)
       {
           gc = Group.GetGroupsByIDs(items.Skip(3));
           shopId = items[2];
       }
       else
       {
           gc = Group.GetGroupsByIDs(items.Skip(2));
       }

       Dynamicweb.eCommerce.Shops.Shop sh = new Dynamicweb.eCommerce.Shops.Shop(shopId);
       labels.Add(sh.Name);

       foreach (Group g in gc)
       {
           labels.Add(g.Name);
       }

       return labels;
   }
}
Inheritance Hierarchy

System.Object
   System.Collections.ObjectModel.Collection<T>
      Dynamicweb.eCommerce.Products.GroupCollection

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

Reference

GroupCollection Members
Dynamicweb.eCommerce.Products Namespace

Send Feedback