Clear Method

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

Clears the contents of the current order group instance.

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

Syntax

'Declaration
Public Overridable Sub Clear
'Usage
Dim instance As OrderGroup

instance.Clear()
public virtual void Clear()
public:
virtual void Clear()
public function Clear()

Exceptions

Exception Condition
InvalidOperationException

The order group has been disposed, either directly or by conversion from an OrderTemplate to a Basket or a Basket to a PurchaseOrder.

Remarks

Clear clears the entire state of the order group instance, except for the OrderGroupId, the SoldToName, and the OrderGroupId. Clear clears the OrderGroupCollection by invoking Clear, and clears the order address collection by invoking Clear.

Permissions

See Also

Reference

OrderGroup Class

OrderGroup Members

Microsoft.CommerceServer.Runtime.Orders Namespace