次の方法で共有


IPropertyProxyEESide::InPlaceUpdateObject

Updates the object's data with the given data object and returns a new data object representing the object's new data.

HRESULT InPlaceUpdateObject(
   [in] IEEDataStorage*   dataIn,
   [out] IEEDataStorage** dataOut
);
int InPlaceUpdateObject(
   IEEDataStorage     dataIn,
   out IEEDataStorage dataOut
);

Parameters

  • dataIn
    [in] An IEEDataStorage object containing the new data.

  • dataOut
    [out] Returns a new IEEDataStorage object containing the replaced data.

Return Value

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

Remarks

This method actually updates the object's data. The data in the returned IEEDataStorage object does not need to be the same as the data in the incoming IEEDataStorage object, but the returned object must reflect the property's current value.

The 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.

The IPropertyProxyEESide::CreateReplacementObject method creates a data object based on the incoming data object but does not affect the property's original data.

See Also

Reference

IPropertyProxyEESide

IEEDataStorage

IPropertyProxyEESide::CreateReplacementObject