Previous in Contents Next in Contents

ISimpleList::putref_Item

The ISimpleList::putref_Item method inserts a VARIANT that references an object's IUnknown or IDispatch implementation into the specified index in the SimpleList.

Syntax

HRESULT putref_Item(
longnIndex,// in
VARIANTvarNew// in
);

Parameters

nIndex
The position at which to insert this item in the SimpleList.
varNew
The VARIANT to insert.

Include File

<commerce.h>

Return Value

Value Description
S_OK The VARIANT was successfully inserted at the specified index.
DISP_E_BADINDEX The value specified in nIndex is less than zero or larger than the SimpleList.

Related Topic

ISimpleList::put_Item


© 1997-2000 Microsoft Corporation. All rights reserved.