Compartilhar via


_XRValueCollectionBaseT.SetItemImpl(int,XRValue *) (Compact 2013)

3/28/2014

This protected method implements collection operations that update objects in the collection.

Note

This method is reserved. In a derived class, call _XRValueCollectionBaseT.SetItem(int,XRValue *) instead of calling SetItemImpl.

Syntax

HRESULT STDMETHODCALLTYPE SetItemImpl(
int nIndex,
XRValue * pValue)

Parameters

  • nIndex
    [in] The index of the XRValue object in the collection to update with the new object.
  • pValue
    [in] Pointer to the new XRValue object.

Return Value

The following table shows the possible return values.

Value

Description

S_OK

The method succeeded.

E_FAIL

The method was not successful.

E_INVALIDARG

The index location is not valid.

E_POINTER

The pValue parameter is not valid.

Remarks

You can override the method implementation in a derived class, for example to add a notification that the collection changed.

To update a data source object in the _XRValueCollectionBaseT<IFace,ItemType,ItemComparer,ItemConverter,ItemLifeManager> collection, call the _XRValueCollectionBaseT.SetItem(int,XRValue *) method, which invokes SetItemImpl.

Requirements

Header

XRCollection.h

See Also

Reference

_XRValueCollectionBaseT<IFace,ItemType,ItemComparer,ItemConverter,ItemLifeManager>