Share via


LineItem Constructor

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Initializes a new instance of the LineItem class using default empty strings, nullNothingnullptra null reference (Nothing in Visual Basic) values, and zero values.

Namespace:  Microsoft.CommerceServer.Runtime.Orders
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New LineItem()
public LineItem()
public:
LineItem()
public function LineItem()

Remarks

LineItem represents a single line item. LineItem implements IEnumerable to allow easy enumeration over all weakly-typed properties of the line item.

The order capture system assigns a unique integer to every line item for every OrderForm. Upon removal of an item, these integer index values are recomputed. Line items are created as stand-alone entities, and are then added to the LineItemCollection.

Permissions

See Also

Reference

LineItem Class

LineItem Members

LineItem Overload

Microsoft.CommerceServer.Runtime.Orders Namespace