Share via


ISimpleSyncProvider::LoadChangeData

Called by the Sync Framework runtime to load the change data for the item with the specified key.

HRESULT LoadChangeData(
  const ITEM_FIELDS *pKeyAndExpectedVersionInfo,
  const CHANGE_UNIT_SET *pChangeUnitsToLoad,
  IRecoverableErrorCallback *pRecoverableErrorCallback,
  IUnknown **ppChangeData);

Parameters

  • pKeyAndExpectedVersionInfo
    [in] Returns the key and updated version properties of the item for which data should be loaded. If the return value is not valid, the Sync Framework ends the session.

    The provider must perform an optimistic concurrency check to verify that the version of the item on the destination corresponds to the values found in keyAndExpectedVersion. If this check fails, provider should report a recoverable error.

  • pChangeUnitsToLoad
    [in, unique] A CHANGE_UNIT_SET object that contains the change units to load for an item. The parameter should be null (not empty) if no change units are specified.
  • pRecoverableErrorCallback
    [in] An IRecoverableErrorCallback object that contains methods that can be called if a recoverable error occurs during data loading.
  • ppChangeData
    [out] An object that represents the change data for the item that has the specified key.

Return Value

  • S_OK

See Also

Reference

ISimpleSyncProvider Interface