IndexSchema Constructor (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.

Namespace:  Microsoft.Synchronization.MetadataStorage
Assembly:  Microsoft.Synchronization.MetadataStorage (in Microsoft.Synchronization.MetadataStorage.dll)

public:
IndexSchema(
	IEnumerable<String^>^ fieldNames, 
	bool isUnique
)

Parameters

fieldNames
Type: System.Collections.Generic::IEnumerable<String>
The list of indexed field names.
isUnique
Type: System::Boolean
true if this index schema uniquely identifies an item; otherwise, false.

ExceptionCondition
ArgumentNullException

Any name in fieldNames is a nullptr.

ArgumentException

Any name in fieldNames is 0 length.

ArgumentOutOfRangeException

fieldNames is 0 length.

The fields that are passed in fieldNames must also exist in the custom field schema that is defined for the replica.

Show: