ReplicaMetadata.FindItemMetadataByIndexedFields Method
When overridden in a derived class, returns a list of item metadata entries that have the specified values for the set of indexed fields.
Namespace: Microsoft.Synchronization.MetadataStorage
Assembly: Microsoft.Synchronization.MetadataStorage (in microsoft.synchronization.metadatastorage.dll)
Syntax
'Declaration
Public MustOverride Function FindItemMetadataByIndexedFields ( _
fields As IEnumerable(Of KeyValuePair(Of String, Object)) _
) As IEnumerable(Of ItemMetadata)
'Usage
Dim instance As ReplicaMetadata
Dim fields As IEnumerable(Of KeyValuePair(Of String, Object))
Dim returnValue As IEnumerable(Of ItemMetadata)
returnValue = instance.FindItemMetadataByIndexedFields(fields)
public abstract IEnumerable<ItemMetadata> FindItemMetadataByIndexedFields (
IEnumerable<KeyValuePair<string,Object>> fields
)
public:
virtual IEnumerable<ItemMetadata^>^ FindItemMetadataByIndexedFields (
IEnumerable<KeyValuePair<String^, Object^>>^ fields
) abstract
public abstract IEnumerable<ItemMetadata> FindItemMetadataByIndexedFields (
IEnumerable<KeyValuePair<String,Object>> fields
)
public abstract function FindItemMetadataByIndexedFields (
fields : IEnumerable<KeyValuePair<String,Object>>
) : IEnumerable<ItemMetadata>
Parameters
- fields
The set of indexed fields that identifies the items for which to search. The fields must be valid fields and represent an index.
Return Value
A list of item metadata entries that have the specified values for the set of indexed fields. When no items exist, an empty collection is returned.
Exceptions
Exception type | Condition |
---|---|
The object has been disposed or was not initialized correctly. |
|
fields is a null reference (Nothing in Visual Basic), or any name or value in fields is a null reference (Nothing in Visual Basic). |
|
Any field name in fields is 0 length, or any string type value in fields is 0 length. |
|
Any field in fields is of an unsupported type. |
|
fieldName was not found or is not valid. |
Remarks
Custom fields must be established when the replica metadata is first initialized by passing FieldSchema to InitializeReplicaMetadata.
Index fields must be established when the replica metadata is first initialized by passing IndexSchema to InitializeReplicaMetadata.
See Also
Reference
ReplicaMetadata Class
ReplicaMetadata Members
Microsoft.Synchronization.MetadataStorage Namespace