Dynamicweb.eCommerce.Products Namespace : ProductGroupRelationCollection Class |
'Declaration
<DefaultMemberAttribute("Item")> <SerializableAttribute()> Public Class ProductGroupRelationCollection Inherits System.Collections.ObjectModel.Collection(Of ProductGroupRelation)
[DefaultMemberAttribute("Item")] [SerializableAttribute()] public class ProductGroupRelationCollection : System.Collections.ObjectModel.Collection<ProductGroupRelation>
class MyPage : System.Web.UI.Page { public void DeleteProduct(string prodId, string groupId) { ProductGroupRelationCollection pgrs = ProductGroupRelation.getProductGroupRelations(prodId); if (pgrs.Count > 1) { ProductGroupRelation pgr = new ProductGroupRelation(); pgr.Delete(prodId, groupId); } } }
System.Object
System.Collections.ObjectModel.Collection<T>
Dynamicweb.eCommerce.Products.ProductGroupRelationCollection
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