Dynamicweb.eCommerce.Prices Namespace : PriceRawCollection Class |
'Declaration
<SerializableAttribute()> Public Class PriceRawCollection Inherits System.Collections.ObjectModel.Collection(Of PriceRaw)
[SerializableAttribute()] public class PriceRawCollection : System.Collections.ObjectModel.Collection<PriceRaw>
class MyPage : System.Web.UI.Page { private Dynamicweb.eCommerce.Prices.PriceRawCollection GetPrice(ProductItemCollection items) { Dynamicweb.eCommerce.Prices.PriceRawCollection col = new Dynamicweb.eCommerce.Prices.PriceRawCollection(); foreach (ProductItem Item in items) { object priceObj = Dynamicweb.eCommerce.Prices.PriceManager.FindPrice(Item.Products.getProductById(Item.DefaultProductID), Item.Quantity); if (priceObj != null) { if ((priceObj) is Dynamicweb.eCommerce.Prices.PriceRaw) { Dynamicweb.eCommerce.Prices.PriceRaw rawPrice = (Dynamicweb.eCommerce.Prices.PriceRaw)priceObj; col.Add(rawPrice); } } } return col; } }
System.Object
System.Collections.ObjectModel.Collection<T>
Dynamicweb.eCommerce.Prices.PriceRawCollection
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