DeleteDetector.ReportLiveItemByIndexedField 方法

在派生类中重写时,报告由已建立索引的字段值标识的项处于活动状态,不应视为已删除。

命名空间: Microsoft.Synchronization.MetadataStorage
程序集: Microsoft.Synchronization.MetadataStorage(在 microsoft.synchronization.metadatastorage.dll 中)

语法

声明
Public MustOverride Sub ReportLiveItemByIndexedField ( _
    fieldName As String, _
    fieldValue As Object _
)
用法
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
)

参数

  • fieldName
    索引字段的名称。
  • fieldValue
    索引字段的值。

异常

异常类型 条件

ArgumentNullException

fieldName 为 null 引用(在 Visual Basic 中为 Nothing) 或 fieldValue 为 null 引用(在 Visual Basic 中为 Nothing)。

ArgumentException

fieldName 的长度为 0。

ItemMetadataNotFoundException

未找到具有指定索引的项。

备注

此方法通知 DeleteDetector 在存储区中找到了项。

对于通过 SqlMetadataStore 获得的实现,只能对未修改的项调用此方法,因为 SaveItemMetadata 会隐式地将已更新的项标记为活动。

请参阅

参考

DeleteDetector 类
DeleteDetector 成员
Microsoft.Synchronization.MetadataStorage 命名空间