Microsoft DirectX 8.1 (C++) |
This topic applies to Windows XP Home Edition and Windows XP Professional only.
The get_Item method retrieves an offer from the collection.
Syntax
HRESULT get_Item(
VARIANT Index,
ICAOffer** ppOffer
);
Parameters
Index
[in] VARIANT that specifies the offer to retrieve. See Remarks for more information.
ppOffer
[out] Pointer to a variable that receives an ICAOffer interface pointer.
Return Values
Returns an HRESULT value. Possible values include the following.
Return code | Description |
S_FALSE | The item was not found. |
S_OK | Success. |
E_FAIL | Index out of range. |
Remarks
The Index parameter supports the following VARIANT types:
ICAOffers::get_Count() - 1
.If the method returns S_OK, the ICAOffer interface has an outstanding reference count. The caller must release the interface.
See Also