Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Namespace: Microsoft.Synchronization.MetadataStorage
Assembly: Microsoft.Synchronization.MetadataStorage (in microsoft.synchronization.metadatastorage.dll)
Syntax
'Declaration
Public Sub New ( _
fieldNames As IEnumerable(Of String), _
isUnique As Boolean _
)
'Usage
Dim fieldNames As IEnumerable(Of String)
Dim isUnique As Boolean
Dim instance As New IndexSchema(fieldNames, isUnique)
public IndexSchema (
IEnumerable<string> fieldNames,
bool isUnique
)
public:
IndexSchema (
IEnumerable<String^>^ fieldNames,
bool isUnique
)
public IndexSchema (
IEnumerable<String> fieldNames,
boolean isUnique
)
public function IndexSchema (
fieldNames : IEnumerable<String>,
isUnique : boolean
)
Parameters
- fieldNames
The list of indexed field names.
- isUnique
true if this index schema uniquely identifies an item; otherwise, false.
Exceptions
Exception type | Condition |
---|---|
Any name in fieldNames is a null reference (Nothing in Visual Basic). |
|
Any name in fieldNames is 0 length. |
|
fieldNames is 0 length. |
Remarks
The fields that are passed in fieldNames must also exist in the custom field schema that is defined for the replica.
See Also
Reference
IndexSchema Class
IndexSchema Members
Microsoft.Synchronization.MetadataStorage Namespace