Dynamicweb.eCommerce.Products Namespace : PropertyFieldOptionCollection Class |
'Declaration
<SerializableAttribute()> Public Class PropertyFieldOptionCollection Inherits System.Collections.ObjectModel.Collection(Of PropertyFieldOption)
[SerializableAttribute()] public class PropertyFieldOptionCollection : System.Collections.ObjectModel.Collection<PropertyFieldOption>
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); } } } } } }
System.Object
System.Collections.ObjectModel.Collection<T>
Dynamicweb.eCommerce.Products.PropertyFieldOptionCollection
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