在衍生類別中覆寫時,會傳回具有指定的索引欄位值、目前在中繼資料存放區內未標示為使用中,而且尚未標示為已刪除的項目清單。
命名空間: Microsoft.Synchronization.MetadataStorage
組件: Microsoft.Synchronization.MetadataStorage (在 microsoft.synchronization.metadatastorage.dll)
語法
'宣告
Public MustOverride Function FindUnreportedItemsByIndexedField ( _
fieldName As String, _
value As Object _
) As IEnumerable(Of ItemMetadata)
'用途
Dim instance As DeleteDetector
Dim fieldName As String
Dim value As Object
Dim returnValue As IEnumerable(Of ItemMetadata)
returnValue = instance.FindUnreportedItemsByIndexedField(fieldName, value)
public abstract IEnumerable<ItemMetadata> FindUnreportedItemsByIndexedField (
string fieldName,
Object value
)
public:
virtual IEnumerable<ItemMetadata^>^ FindUnreportedItemsByIndexedField (
String^ fieldName,
Object^ value
) abstract
public abstract IEnumerable<ItemMetadata> FindUnreportedItemsByIndexedField (
String fieldName,
Object value
)
public abstract function FindUnreportedItemsByIndexedField (
fieldName : String,
value : Object
) : IEnumerable<ItemMetadata>
參數
- fieldName
索引欄位的名稱。
- value
索引欄位的值。
傳回值
具有指定的索引欄位值、目前在中繼資料存放區內未標示為使用中,而且尚未標示為已刪除的項目清單。當沒有任何項目存在時,就會傳回空的集合。
例外
| 例外狀況型別 | 條件 |
|---|---|
fieldName 是 null 參考 (在 Visual Basic 中為 Nothing) 或 value 是 null 參考 (在 Visual Basic 中為 Nothing)。 |
|
fieldName 的長度為 0,或者 value 是字串且長度為 0。 |
備註
當針對變更的項目呼叫了 ReplicaMetadata.SaveItemMetadata,或是針對未變更但仍為使用中的項目呼叫了 ReportLiveItemByIndexedField 或 ReportLiveItemByIndexedFields 時,項目會在中繼資料存放區內標示為使用中。
請參閱
參考
DeleteDetector 類別
DeleteDetector 成員
Microsoft.Synchronization.MetadataStorage 命名空間