Partilhar via


BasketId Property

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

Gets a value that identifies a basket before it is converted to a purchase order.

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

Syntax

'Declaration
Public ReadOnly Property BasketId As Guid
'Usage
Dim instance As PurchaseOrder
Dim value As Guid

value = instance.BasketId
public Guid BasketId { get; }
public:
property Guid BasketId {
    Guid get ();
}
public function get BasketId () : Guid

Property Value

Type: System..::.Guid
The identifier for the basket before conversion to a purchase order.

Exceptions

Exception Condition
InvalidOperationException

The current instance has been disposed.

Remarks

When SaveAsOrder is called, the basket is converted to a purchase order and a new identifier is created for the purchase order. The previous basket's ID is also saved.

Permissions

See Also

Reference

PurchaseOrder Class

PurchaseOrder Members

Microsoft.CommerceServer.Runtime.Orders Namespace