IReplicaMetadata::ResetReportingWatermark

Resets the delete detection service by marking all items as unreported.

Syntax

HRESULT ResetReportingWatermark();

Parameters

None

Return Value

  • S_OK

Remarks

This method is part of the delete detection service. To prepare for a new delete detection session, ResetReportingWatermark marks all items as inactive. An item is marked as active in the metadata store when IReplicaMetadata::SaveItemMetadata was called for a changed item, or when IReplicaMetadata::ReportLiveItemByIndexedFields or IReplicaMetadata::ReportLiveItemByGlobalId was called for an unchanged but still active item. A provider can call IReplicaMetadata::GetUnreportedItemsor IReplicaMetadata::GetUnreportedItemsByIndexedFields to get items that exist in the metadata store that are not reported as active. The provider can then mark these items as deleted in the metadata store.

See Also

Reference

IReplicaMetadata Interface