IOrderForm::ClearItems

The ClearItems method empties the Items Dictionary in an OrderForm.

Syntax

HRESULT ClearItems();

Parameters

None.

Include File

<commerce.h>

Return Value

After removing the Items collection, ClearItems creates a new ISimpleList instance that represents an empty Items collection. Subsequent additions to the Items collection are made internally through this ISimpleList interface pointer. The HRESULT returned by ClearItems is the result of ClearItems attempt to instantiate the new ISimpleList interface pointer.

Related Topic

IOrderForm::AddItem


© 1997-1998 Microsoft Corporation. All rights reserved.