Dynamicweb.eCommerce.Prices Namespace : PriceCollection Class |
'Declaration
<DefaultMemberAttribute("Item")> <SerializableAttribute()> Public Class PriceCollection Inherits System.Collections.ObjectModel.Collection(Of Price)
[DefaultMemberAttribute("Item")] [SerializableAttribute()] public class PriceCollection : System.Collections.ObjectModel.Collection<Price>
class MyPage : System.Web.UI.Page { private Dynamicweb.eCommerce.Prices.PriceCollection CheckUnit(Dynamicweb.eCommerce.Prices.PriceCollection priceCollection, string UnitID) { Dynamicweb.eCommerce.Prices.PriceCollection ReturnCollection = new Dynamicweb.eCommerce.Prices.PriceCollection(); foreach (Dynamicweb.eCommerce.Prices.Price price in priceCollection) { if (price.UnitID == UnitID) { ReturnCollection.Add(price); } } return ReturnCollection; } }
System.Object
System.Collections.ObjectModel.Collection<T>
Dynamicweb.eCommerce.Prices.PriceCollection
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