_ItemConverter.Convert(XRValue *,ItemType *) (Compact 2013)
3/28/2014
This method obtains an ItemType object from an XRValue encapsulated object.
Syntax
HRESULT Convert(
XRValue * pSourceValue,
ItemType * pValue)
Parameters
- pSourceValue
[in] A pointer to an XRValue object from which to obtain an ItemType source object.
- pValue
[out] A pointer to the current ItemType object that is obtained from the XRValue encapsulated 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_POINTER |
The pValue parameter is not valid. |
Remarks
The XRValue object pointed to by pSourceValue must have already been created by the method caller to wrap a specific item into an XRValue value-type object.
You can use the Convert method in method implementations that accept parameters of type XRValue that represent items to obtain, add, or remove in a collection.
Define the ItemType class type in the ItemType parameter in the _XRValueCollectionBaseT<IFace,ItemType,ItemComparer,ItemConverter,ItemLifeManager> class.
Requirements
Header |
XRCollection.h |