XRValueCollectionT.GetItem(int,ItemType *) (Compact 2013)

3/28/2014

This method obtains the item at the specified index within the collection.

Syntax

HRESULT GetItem(
int nIndex,
ItemType * pValue)

Parameters

  • nIndex
    [in] The index of the item to obtain.
  • pValue
    [out] A pointer to the item of type ItemType that’s at the specified index within the collection.

Return Value

The following table shows the possible return values.

Value

Description

S_OK

The method was successful.

E_FAIL

The method was unsuccessful.

E_POINTER

The pValue parameter is not valid.

E_INVALIDARG

The index location is not valid.

Remarks

ItemType is defined in the ItemType template parameter of the XRValueCollectionT<IFace,ItemType> class.

The position at the beginning of the index is 0 (zero).

Requirements

Header

XRCollection.h

See Also

Reference

XRValueCollectionT<IFace,ItemType>