Поделиться через


XRValueCollectionT.SetItem(int,const ItemType&) (Compact 2013)

3/28/2014

This method updates the data source object at the specified index within the collection by replacing it with a new data source object.

Syntax

HRESULT SetItem(
int nIndex,
const ItemType& Value)

Parameters

  • nIndex
    [in] The index of the item to update.
  • Value
    [in] A pointer to the updated item of type ItemType.

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 Value parameter is not valid.

Remarks

The index position at the beginning of the collection is 0.

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

Requirements

Header

XRCollection.h

See Also

Reference

XRValueCollectionT<IFace,ItemType>