Method SetUnique
SetUnique(bool)
Sets whether the index enforces unique values.
public IndexOptionsBuilder<TDocument> SetUnique(bool value)
Parameters
value
boolWhether the index enforces unique values.
Returns
- IndexOptionsBuilder<TDocument>
The builder (so method calls can be chained).