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
- 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.