Share via


ISynchronousNotifyingChangeApplierTarget::GetDestinationVersion

Gets the version of an item that is stored in the destination replica.

HRESULT GetDestinationVersion(
  ISyncChange * pSourceChange,
  ISyncChange ** ppDestinationVersion);

Parameters

  • pSourceChange
    [in] The item change that is sent by the source provider.
  • ppDestinationVersion
    [out] Returns an item change that contains the version of the item in the destination replica.

Return Value

  • S_OK

  • Provider-determined error codes

Remarks

This method is called by the ISynchronousNotifyingChangeApplier object when destination versions are not passed to the ISynchronousNotifyingChangeApplier::ApplyChanges method. GetDestinationVersion is called one time for each change in the batch of changes that is sent to the change applier.

This method is optional and can return E_NOTIMPL, except when the provider reports constraint conflicts or any other provider in the synchronization community resolves constraint conflicts by merging. In either of these situations, this method must be implemented.

See Also

Reference

ISynchronousNotifyingChangeApplierTarget Interface