Udostępnij za pośrednictwem


Clear Method

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

Clears the state of the current OrderForm instance.

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

Syntax

'Declaration
Public Sub Clear
'Usage
Dim instance As OrderForm

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

Remarks

Use this method to clear all the items associated with the order form. Clear deletes all of the LineItems, Shipments, and PromoCodeRecords of the current instance. Clear also removes all the indexer properties except the default keys (for example, _Basket_Errors, _Purchase_Errors, _Verify_With). Clear also resets all the totals (for example, SubTotal, TaxTotal, Total, ShippingTotal, HandlingTotal.

Permissions

See Also

Reference

OrderForm Class

OrderForm Members

Microsoft.CommerceServer.Runtime.Orders Namespace