_XRValueCollectionBaseT.IndexOf(XRValue *,int *) (Compact 2013)
3/28/2014
This method determines the index of the specified XRValue object in the collection.
Syntax
HRESULT STDMETHODCALLTYPE IndexOf(
XRValue * pValue,
int * pIndex)
Parameters
- pValue
[in] Pointer to an XRValue object to find in the collection.
- pIndex
[out] Indexed position of the XRValue object if it was found in the collection. If the object is not found, the pIndex value is -1.
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_POINTER |
The pValue or pIndex parameter is not valid. |
Remarks
Before you call the IndexOf method, call _XRValueCollectionBaseT.Contains(XRValue *,bool *) to verify that the specified XRValue object exists in the collection.
Requirements
Header |
XRCollection.h |
See Also
Reference
_XRValueCollectionBaseT<IFace,ItemType,ItemComparer,ItemConverter,ItemLifeManager>
_XRValueCollectionBaseT.Contains(XRValue *,bool *)
_XRValueCollectionBaseT.SetItem(int,XRValue *)