Basket Constructor
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Initializes a new instance of the Basket class.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Protected Friend Sub New
'Usage
Dim instance As New Basket()
protected internal Basket()
protected public:
Basket()
protected internal function Basket()
Remarks
Orders are divided into three states within the order capture system. These states and respective classes are: basket (Basket). order template (OrderTemplate), and purchase order (PurchaseOrder). An order's lifecycle generally proceeds from a basket to a purchase order. However, it is also possible to transition from an order template to a basket and then to a purchase order. The methods and properties of Basket are provided to capture the information required for a purchase order. Conceptually, the basket represents the shopping cart stage of an e-commerce site.
Baskets are uniquely identified by basket ID and basket name. The BasketID property of a basket is the same as the ID of the customer owning the basket. The Name property indicates the name of the basket. For backward compatibility, the name for baskets in Commerce Server 2007 defaults to String.Empty.
Baskets are created and returned with the overloaded GetBasket methods in OrderContext class.
It is possible to add contents of existing purchase orders or order templates to baskets via the Add method. Baskets can be converted to purchase orders (baskets are the only entities in the order capture system that can be converted to purchase orders.) When a basket is successfully converted to a purchase order, the basket instance is purged from the order capture system.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.