Udostępnij za pośrednictwem


DeleteDetector.ReportLiveItemByIndexedField Method

When overridden in a derived class, reports that the item that is identified by the indexed field value is active and should not be considered deleted.

Namespace: Microsoft.Synchronization.MetadataStorage
Assembly: Microsoft.Synchronization.MetadataStorage (in microsoft.synchronization.metadatastorage.dll)

Syntax

'Declaration
Public MustOverride Sub ReportLiveItemByIndexedField ( _
    fieldName As String, _
    fieldValue As Object _
)
'Usage
Dim instance As DeleteDetector
Dim fieldName As String
Dim fieldValue As Object

instance.ReportLiveItemByIndexedField(fieldName, fieldValue)
public abstract void ReportLiveItemByIndexedField (
    string fieldName,
    Object fieldValue
)
public:
virtual void ReportLiveItemByIndexedField (
    String^ fieldName, 
    Object^ fieldValue
) abstract
public abstract void ReportLiveItemByIndexedField (
    String fieldName, 
    Object fieldValue
)
public abstract function ReportLiveItemByIndexedField (
    fieldName : String, 
    fieldValue : Object
)

Parameters

  • fieldName
    The name of the indexed field.
  • fieldValue
    The value of the indexed field.

Exceptions

Exception type Condition

ArgumentNullException

fieldName is a null reference (Nothing in Visual Basic) or fieldValue is a null reference (Nothing in Visual Basic).

ArgumentException

fieldName is 0 length.

ItemMetadataNotFoundException

No item was found with the specified index.

Remarks

This method notifies DeleteDetector that an item was found in the store.

For the implementation that is available through SqlMetadataStore, this method only has to be called on unmodified items because SaveItemMetadata implicitly marks updated items as active.

See Also

Reference

DeleteDetector Class
DeleteDetector Members
Microsoft.Synchronization.MetadataStorage Namespace