Jaa


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)

Syntax

'Declaration
<SerializableAttribute> _
Public Class LineItem _
    Inherits MappedStorageBase _
    Implements IEnumerable, ISerializable
'Usage
Dim instance As LineItem
[SerializableAttribute]
public class LineItem : MappedStorageBase, IEnumerable, 
    ISerializable
[SerializableAttribute]
public ref class LineItem : public MappedStorageBase, 
    IEnumerable, ISerializable
public class LineItem extends MappedStorageBase implements IEnumerable, ISerializable

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.

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

Inheritance Hierarchy

System..::.Object
  Microsoft.CommerceServer.Runtime..::.MappedStorageBase
    Microsoft.CommerceServer.Runtime.Orders..::.LineItem

Thread Safety

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

See Also

Reference

LineItem Members

Microsoft.CommerceServer.Runtime.Orders Namespace