IPropertyProxyEESide::CreateReplacementObject

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Creates a copy of a data object specific to the expression evaluator (EE).

Syntax

HRESULT CreateReplacementObject(
   IEEDataStorage*  dataIn,
   IEEDataStorage** dataOut
);
int CreateReplacementObject(
   IEEDataStorage     dataIn,
   out IEEDataStorage dataOut
);

Parameters

dataIn
[in] An IEEDataStorage object holding the data to be copied.

dataOut
[out] Returns a new IEEDataStorage object.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

This method is given an IEEDataStorage object representing an array of bytes. This incoming data object is typically not implemented by the EE. However, the object returned by this method is always implemented by the EE, which lets the EE implement the IEEDataStorage interface on whatever class is desired.

Note that the data supplied by the incoming IEEDataStorage object must be the same data in the outgoing IEEDataStorage object.

See also