Udostępnij za pośrednictwem


ISimpleSyncProvider::DeleteItem

Called by the Sync Framework runtime to delete an item from the destination store.

HRESULT DeleteItem(
  const ITEM_FIELDS *pKeyAndExpectedVersionInfo,
  IRecoverableErrorCallback *pRecoverableErrorCallback,
  BOOL *pfCommitKnowledgeAfterThisItem);

Parameters

  • pKeyAndExpectedVersionInfo
    [in] The key and expected version properties of the item to be deleted.

    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 pKeyAndExpectedVersionInfo. If this check fails, provider should report a recoverable error.

  • pRecoverableErrorCallback
    [in] An IRecoverableErrorCallback object that contains methods that can be called if a recoverable error occurs during an item delete.
  • pfCommitKnowledgeAfterThisItem
    [out] Returns whether the Sync Framework runtime should commit knowledge to the metadata store after processing is complete for the specified item.

Return Value

  • S_OK

See Also

Reference

ISimpleSyncProvider Interface