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


_ItemLifeManager.CloneToBox(const Type&,XRValue *) (Compact 2013)

3/28/2014

This method returns an XRValue object that encapsulates the specified Type object.

Syntax

HRESULT CloneToBox(
const Type & Item,
XRValue * pValue)

Parameters

  • Item
    [in] A pointer to an item of type Type, to encapsulate into an XRValue object.
  • pValue
    [out] A pointer to an XRValue object that encapsulates the item in the Item parameter.

Return Value

The following table shows the possible return values.

Value

Description

S_OK

The method succeeded.

E_POINTER

The pValue parameter is not valid.

Remarks

This method boxes the object type in the Item parameter by wrapping it into an XRValue value-type object.

The Type of the item that is specified in the Item parameter is defined by the ItemType template parameter that is defined in the _XRValueCollectionBaseT<IFace,ItemType,ItemComparer,ItemConverter,ItemLifeManager> class.

Requirements

Header

XRCollection.h

See Also

Reference

_ItemLifeManager