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.

Overload List

  Name Description
ms870947.pubmethod(en-US,CS.70).gif LineItem()()() Initializes a new instance of the LineItem class using default empty strings, nullNothingnullptra null reference (Nothing in Visual Basic) values, and zero values.
ms870947.protmethod(en-US,CS.70).gif LineItem(SerializationInfo, StreamingContext) Initializes a new instance of the LineItem class based on the specified serialization information and streaming context.
ms870947.pubmethod(en-US,CS.70).gif LineItem(String, String, String, Decimal) Initializes a new instance of the LineItem class using the specified product catalog, product ID, product variant ID, and quantity information.

Top

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.

See Also

Reference

LineItem Class

LineItem Members

Microsoft.CommerceServer.Runtime.Orders Namespace