Partilhar via


OrderForm Class

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

Manages customers order forms.

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

Syntax

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

Remarks

OrderForm is a container that holds line items (products) in addition to other collections. Most commerce sites need a single order form per order. In some business cases, this abstraction is necessary to model logical sub-orders within the context of the overall order.

For example, a large corporation might have multiple smaller groups -- accounting, engineering, and marketing. A site could expose the order form concept so each logical group could have their own order form within the context of a single order.

For backwards compatibility, during the RunPipeline method a pipeline invocation is performed for each order form.

OrderForm represents a collection of line items. It implements IEnumerable, to allow for enumeration over all the strongly typed and non-strongly typed properties of the order form. An OrderForm is uniquely identifiable by its order form ID. Order forms must be associated with an order group in order to save the order form to an underlying data store. Order forms are created as stand alone entities, and are added to an OrderFormCollection. All properties and methods of the OrderForm, unless explicitly called out otherwise, will behave the same whether or not the OrderForm has been added to the OrderFormCollection.

Inheritance Hierarchy

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

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

OrderForm Members

Microsoft.CommerceServer.Runtime.Orders Namespace