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

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ItemMetadata>
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 Condition
ObjectDisposedException

The object has been disposed or was not initialized correctly.

ArgumentNullException

fields is a null reference (Nothing in Visual Basic), or any name or value in fields is a null reference (Nothing in Visual Basic).

ArgumentException

Any field name in fields is 0 length, or any string type value in fields is 0 length.

NotSupportedException

Any field in fields is of an unsupported type.

MetadataFieldNotFoundException

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

Microsoft.Synchronization.MetadataStorage Namespace