ISyncDataConverter::ConvertDataToProviderFormat

Converts data from an external format to a provider’s transfer format. The external format can be another provider's transfer format or an intermediate format that is used by a synchronization community.


HRESULT ConvertDataToProviderFormat(
  ILoadChangeContext *pDataContext,
  IUnknown *pUnkDataOut,
  IUnknown **ppUnkDataOut);

pDataContext

[in] An ILoadChangeContext object that represents information about a change to be loaded from the item store. This object can be used to set a recoverable error for a change if an issue occurs during data conversion.

pUnkDataOut

[in] The data to be converted.

ppUnkDataout

[out] The converted data.

  • S_OK

  • Developer-defined error values

If an error is returned from this method during data conversion, the synchronization session ends and returns the error code. If a recoverable error occurs during data conversion, sets that error on pDataContext instead of returning it. The item for which the error is set is then skipped during change application.

Show: