Dynamicweb 8 Documentation
PropertyProductRelationCollection Class
Members  Example 

Represents a collection of PropertyProductRelation objects.
Object Model
PropertyProductRelationCollection ClassPropertyProductRelation Class
Syntax
Example
class MyPage : System.Web.UI.Page
{
    public void RenderGroupFields(Dynamicweb.eCommerce.Products.PropertyProductRelationCollection propertyRelations, Dynamicweb.Rendering.Template ParentTemplate, string LoopName)
    {
        if (propertyRelations.Count > 0)
        {
            Dynamicweb.eCommerce.Products.Product prod = Dynamicweb.eCommerce.Products.Product.Create(propertyRelations.get_Item(0).ProductID);
            Dynamicweb.eCommerce.Products.PropertyTypeCollection Types = Dynamicweb.eCommerce.Products.PropertyType.getPropertyTypes(prod, false);

            //"GroupFields"
            RenderGroupFieldsValues(Types, ParentTemplate);
            RenderGroupFieldTypes(Types, ParentTemplate, LoopName);
        }
    }

    private void RenderGroupFieldsValues(Dynamicweb.eCommerce.Products.PropertyTypeCollection Types, Dynamicweb.Rendering.Template ParentTemplate)
    {
        //TODO: insert your code here
    }
    private void RenderGroupFieldTypes(Dynamicweb.eCommerce.Products.PropertyTypeCollection Types, Dynamicweb.Rendering.Template ParentTemplate, string LoopName)
    {
        //TODO: insert your code here
    }
}
Inheritance Hierarchy

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

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

PropertyProductRelationCollection Members
Dynamicweb.eCommerce.Products Namespace

Send Feedback