XRValueCollectionT.Insert(int,const ItemType&) (Compact 2013)
3/28/2014
This method inserts an item into the collection at the specified index in the collection.
Syntax
HRESULT Insert(
int nIndex,
const ItemType & Value)
Parameters
- nIndex
[in] The index in the collection where the item of type ItemType is inserted.
- Value
[in] A pointer to the item of type ItemType to insert into 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_INVALIDARG |
The index position is not valid. |
E_POINTER |
The Value parameter is not valid. |
Remarks
ItemType is defined in the ItemType template parameter of the XRValueCollectionT<IFace,ItemType> class.
Requirements
Header |
XRCollection.h |