ISimpleList::get_Item

The get_Item method locates the VARIANT at a specified index, copies the contents of this VARIANT to a new VARIANT, and returns the address of the new VARIANT.

Syntax

HRESULT get_Item(
longnIndex,// in
VARIANT *pvarGet// out
);

Parameters

nIndex
The index of the item to retrieve.
pvarGet
The address of the requested VARIANT.

Include File

<commerce.h>

Return Value

The get_Item method returns one of the following values.

Value Meaning
E_POINTER The pvarGet VARIANT is a NULL pointer.
DISP_E_BADINDEX The nIndex parameter specifies a value that is out of range.
S_OK The method succeeded.

Related Topic

ISimpleList::put_Item


© 1997-1998 Microsoft Corporation. All rights reserved.