DeleteDetector::FindUnreportedItemsByIndexedFields Method

When overridden in a derived class, returns a list of items that have the specified set of indexed field values and are not currently marked as active in the metadata store and that are not already marked as deleted.

Namespace:  Microsoft.Synchronization.MetadataStorage
Assembly:  Microsoft.Synchronization.MetadataStorage (in Microsoft.Synchronization.MetadataStorage.dll)

public:
virtual IEnumerable<ItemMetadata^>^ FindUnreportedItemsByIndexedFields(
	IEnumerable<KeyValuePair<String^, Object^>>^ fields
) abstract

Parameters

fields
Type: System.Collections.Generic::IEnumerable<KeyValuePair<String, Object>>
The set of indexed field name and value pairs that define the items for which to search.

Return Value

Type: System.Collections.Generic::IEnumerable<ItemMetadata>
A list of items that have the specified set of indexed field values and are not currently marked as active in the metadata store and that are not already marked as deleted. When no items exist, an empty collection is returned.

ExceptionCondition
ArgumentNullException

fields is a nullptr.

An item is marked as active in the metadata store when ReplicaMetadata::SaveItemMetadata was called for a changed item, or when ReportLiveItemByIndexedField or ReportLiveItemByIndexedFields was called for an unchanged but still active item.

Show: