Dynamicweb 8 Documentation
Add Method (OrderLineCollection)
Example 

The order line.
Adds the specified order line.
Syntax
'Declaration
 
Public Shadows Sub Add( _ 
   ByVal _OrderLine As OrderLine _ 
) 
public new void Add( 
   OrderLine _OrderLine 
)

Parameters

_OrderLine
The order line.
Example
public static OrderLineCollection GetOrderLineCollection(IDataReader dataReader, Order Order)
{
    OrderLineCollection orderLines = new OrderLineCollection();

    while (dataReader.Read())
   	{
   		OrderLine orderLine = new OrderLine(dataReader, Order);

   		if (orderLine.ParentLineID == "")
   		{
   			orderLine.Add(orderLine);
   		}
   	}
 
    return orderLines;
}
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

OrderLineCollection Class
OrderLineCollection Members

Send Feedback