Dynamicweb 8 Documentation
ProductGroupRelationCollection Class
Members  Example 

Represents a collection of ProductGroupRelation objects.
Object Model
ProductGroupRelationCollection ClassProductGroupRelation Class
Syntax
Example
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);
        }
    }
}
Inheritance Hierarchy

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

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

ProductGroupRelationCollection Members
Dynamicweb.eCommerce.Products Namespace

Send Feedback