Dynamicweb 8 Documentation
ProductFieldValueCollection Class
Members  Example 

Represents a collection of ProductFieldValue objects.
Object Model
ProductFieldValueCollection ClassProductFieldValue Class
Syntax
'Declaration
 
<SerializableAttribute()> 
Public Class ProductFieldValueCollection 
   Inherits System.Collections.ObjectModel.Collection(Of ProductFieldValue)
Example
class RenderProduct
{
   public void RenderProductGroupCustomFields(ProductGroupFieldValueCollection ProductGroupFieldValues)
   {
       ProductFieldValueCollection pfvCol = new ProductFieldValueCollection();

       foreach (ProductGroupFieldValue pgfv in ProductGroupFieldValues)
       {
           ProductField pf = new ProductField();
           ProductFieldValue pfv = new ProductFieldValue(pf, pgfv.Value);
 
           pfv.ProductField.Types = pgfv.ProductGroupField.Types;
           pfv.ProductField.TemplateName = pgfv.ProductGroupField.TemplateName;
           pfv.ProductField.SystemName = pgfv.ProductGroupField.SystemName;
           pfv.Value = pgfv.Value;

           pfvCol.Add(pfv);
       }

       if (pfvCol.Count > 0)
       {
           //TODO: insert your code here
       }
   }
}
Inheritance Hierarchy

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

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

ProductFieldValueCollection Members
Dynamicweb.eCommerce.Products Namespace

Send Feedback