LineItem Class

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

Represents a line item on an order form.

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

public class LineItem : MappedStorageBase, IEnumerable, 

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.

A valid line item must have valid values for the ProductCatalog, ProductID, and Quantity properties.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.