Dynamicweb.eCommerce.Orders Namespace : OrderLineCollection Class |
'Declaration
<DefaultMemberAttribute("Item")> <SerializableAttribute()> Public Class OrderLineCollection Inherits System.Collections.ObjectModel.Collection(Of OrderLine) Implements Dynamicweb.eCommerce.Prices.IWithPrice
[DefaultMemberAttribute("Item")] [SerializableAttribute()] public class OrderLineCollection : System.Collections.ObjectModel.Collection<OrderLine>, Dynamicweb.eCommerce.Prices.IWithPrice
class Renderer { public void RenderOrderLines(Order order, Rendering.Template ParentTemplate) { Rendering.Template orderLineTemplate = ParentTemplate.GetLoop("OrderLines"); foreach (OrderLine orderLine in order.OrderLines) { RenderOrderLine(orderLine, orderLineTemplate); orderLineTemplate.CommitLoop(); } } public void RenderOrderLine(OrderLine orderLine, Rendering.Template template) { //TODO: insert your code here. } }
System.Object
System.Collections.ObjectModel.Collection<T>
Dynamicweb.eCommerce.Orders.OrderLineCollection
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