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
public abstract IEnumerable<ItemMetadata> FindUnreportedItemsByIndexedFields (
    IEnumerable<KeyValuePair<String,Object>> fields
)
public abstract function FindUnreportedItemsByIndexedFields (
    fields : IEnumerable<KeyValuePair<String,Object>>
) : IEnumerable<ItemMetadata>

Parameters

  • fields
    The set of indexed field name and value pairs that define the items for which to search.

Return Value

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 type 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
DeleteDetector Members
Microsoft.Synchronization.MetadataStorage Namespace