Dynamicweb.eCommerce.Products Namespace : GroupCollection Class |
'Declaration
<DefaultMemberAttribute("Item")> <SerializableAttribute()> Public Class GroupCollection Inherits System.Collections.ObjectModel.Collection(Of Group)
[DefaultMemberAttribute("Item")] [SerializableAttribute()] public class GroupCollection : System.Collections.ObjectModel.Collection<Group>
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; } }
System.Object
System.Collections.ObjectModel.Collection<T>
Dynamicweb.eCommerce.Products.GroupCollection
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