IndexSchema Class
Represents a single or multicolumn index that can be used to more efficiently find items that are in the metadata store.
Assembly: Microsoft.Synchronization.MetadataStorage (in Microsoft.Synchronization.MetadataStorage.dll)
The IndexSchema type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | IndexSchema(IEnumerable<String>, Boolean) | Initializes a new instance of the IndexSchema class that contains the specified list of indexed field names and a value that indicates whether the index schema uniquely defines an item. |
![]() | IndexSchema(String, Boolean) | Initializes a new instance of the IndexSchema class that has the specified indexed field name and a value that indicates whether this index schema uniquely defines an item. |
| Name | Description | |
|---|---|---|
![]() | FieldNames | Gets the list of field names that defines this index. |
![]() | IsUnique | Gets a value that indicates whether this index schema uniquely identifies an item. |
This index can be defined as unique to make sure that the index defines a single item.
The index schema is defined when the metadata is initialized for the replica by using MetadataStore.InitializeReplicaMetadata. The fields that are contained in the index schema must also exist in the custom field schema that is defined for the replica.
Show:
