Dynamicweb 8 Documentation
PropertyFieldOptionCollection Class
Members  Example 

Represents a collection of PropertyFieldOption objects.
Object Model
PropertyFieldOptionCollection ClassPropertyFieldOption Class
Syntax
'Declaration
 
<SerializableAttribute()> 
Public Class PropertyFieldOptionCollection 
   Inherits System.Collections.ObjectModel.Collection(Of PropertyFieldOption)
Example
class MyPage : System.Web.UI.Page
{
    public void RenderGroupFieldGroups(Dynamicweb.eCommerce.Products.PropertyGroup propertyGroup)
    {
        foreach (PropertyField propertyField in propertyGroup.PropertyFields)
        {
            if (propertyField.PropertyFieldOptions.Count > 0)
            {
                PropertyFieldOptionCollection propOtions = new PropertyFieldOptionCollection();

                foreach (PropertyFieldOption fieldOption in propertyField.PropertyFieldOptions)
                {
                    if (!propOtions.Contains(fieldOption))
                    {
                        propOtions.Add(fieldOption);
                    }
                }
            }
        }
    }
}
Inheritance Hierarchy

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

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

PropertyFieldOptionCollection Members
Dynamicweb.eCommerce.Products Namespace

Send Feedback