DeleteDetector::FindUnreportedItemsByIndexedField Method

When overridden in a derived class, returns a list of items that have the specified indexed field value 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^>^ FindUnreportedItemsByIndexedField(
	String^ fieldName, 
	Object^ value
) abstract

Parameters

fieldName
Type: System::String
The name of the indexed field.
value
Type: System::Object
The value of the indexed field.

Return Value

Type: System.Collections.Generic::IEnumerable<ItemMetadata>
A list of items that have the specified indexed field value 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

fieldName is a nullptr or value is a nullptr.

ArgumentException

fieldName is 0 length, or value is a string and is 0 length.

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: