Share via


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)

Syntax

'Declaration
Public MustOverride Function FindUnreportedItemsByIndexedFields ( _
    fields As IEnumerable(Of KeyValuePair(Of String, Object)) _
) As IEnumerable(Of ItemMetadata)
'Usage
Dim instance As DeleteDetector
Dim fields As IEnumerable(Of KeyValuePair(Of String, Object))
Dim returnValue As IEnumerable(Of ItemMetadata)

returnValue = instance.FindUnreportedItemsByIndexedFields(fields)
public abstract IEnumerable<ItemMetadata> FindUnreportedItemsByIndexedFields(
    IEnumerable<KeyValuePair<string, Object>> fields
)
public:
virtual IEnumerable<ItemMetadata^>^ FindUnreportedItemsByIndexedFields(
    IEnumerable<KeyValuePair<String^, Object^>>^ fields
) abstract
abstract FindUnreportedItemsByIndexedFields : 
        fields:IEnumerable<KeyValuePair<string, Object>> -> IEnumerable<ItemMetadata> 
public abstract function FindUnreportedItemsByIndexedFields(
    fields : IEnumerable<KeyValuePair<String, Object>>
) : IEnumerable<ItemMetadata>

Parameters

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.

Exceptions

Exception Condition
ArgumentNullException

fields is a null reference (Nothing in Visual Basic).

Remarks

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.

See Also

Reference

DeleteDetector Class

Microsoft.Synchronization.MetadataStorage Namespace