Share via


Delete Method

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

Deletes the current basket instance from the database.

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

Syntax

'Declaration
Public Sub Delete
'Usage
Dim instance As Basket

instance.Delete()
public void Delete()
public:
void Delete()
public function Delete()

Exceptions

Exception Condition
InvalidCatalogOperationException

The basket has already been disposed, either directly or by conversion to a purchase order.

Remarks

Use this method to purge the basket instance from the underlying stores.

Further accesses to the order group instance after it has been deleted will result in an InvalidCatalogOperationException being thrown.

Permissions

See Also

Reference

Basket Class

Basket Members

Microsoft.CommerceServer.Runtime.Orders Namespace