Dynamicweb.eCommerce.Products Namespace : ProductRelatedGroupCollection Class |
'Declaration
<DefaultMemberAttribute("Item")> <SerializableAttribute()> Public Class ProductRelatedGroupCollection Inherits System.Collections.ObjectModel.Collection(Of ProductRelatedGroup)
[DefaultMemberAttribute("Item")] [SerializableAttribute()] public class ProductRelatedGroupCollection : System.Collections.ObjectModel.Collection<ProductRelatedGroup>
class MyPage : System.Web.UI.Page { private string RelatedGrpList() { StringBuilder sb = new StringBuilder(); ProductRelatedGroupCollection rgCol = ProductRelatedGroup.getRelatedGroups(); int fldCnt = rgCol.Count; sb.Append("<select size=" + fldCnt + 1 + " name=ElemSort>"); foreach (ProductRelatedGroup rg in rgCol) { sb.Append("<option value=\"" + rg.GroupID + "\">" + rg.Name + "</option>"); } sb.Append("</select>"); return sb.ToString(); } }
System.Object
System.Collections.ObjectModel.Collection<T>
Dynamicweb.eCommerce.Products.ProductRelatedGroupCollection
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