IReplicaMetadata::GetUnreportedItems

Returns a list of items that are not currently marked as active in the metadata store and that are not already marked as deleted.

HRESULT GetUnreportedItems (
  IItemMetadataEnumerator ** ppItemMetadataEnumerator);

Parameters

  • ppItemMetadataEnumerator
    [out] Returns a list of items that are not currently marked as active in the metadata store.

Return Value

  • S_OK

  • E_POINTER

  • E_OUTOFMEMORY

Remarks

This method is part of the delete detection service. An item is marked as active in the metadata store when IReplicaMetadata::SaveItemMetadata is called for a changed item, or when IReplicaMetadata::ReportLiveItemByIndexedFields or IReplicaMetadata::ReportLiveItemByGlobalId is called for an unchanged but still active item. A provider can call IReplicaMetadata::GetUnreportedItems or 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