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

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

public:
IndexSchema(
	String^ fieldName, 
	bool isUnique
)

Parameters

fieldName
Type: System::String
The indexed field name.
isUnique
Type: System::Boolean
true if this index schema uniquely identifies an item; otherwise, false.

ExceptionCondition
ArgumentNullException

fieldName is a nullptr.

ArgumentException

fieldName is 0 length.

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

Show: