The ISimpleList::putref_Item method inserts a VARIANT that references an object's IUnknown or IDispatch implementation into the specified index in the SimpleList.
HRESULT putref_Item(
longnIndex,// in
VARIANTvarNew// in
);
<commerce.h>
| 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. |