Commands: Indexes: How to change index lock mode?
SetIndexLock method allows you to change index lock mode for a given index.
Syntax
void SetIndexLock(string name, IndexLockMode lockMode);
Parameters | ||
---|---|---|
name | string | name of an index to change lock mode for |
lockMode | IndexLockMode | new index lock mode |
Example
store.DatabaseCommands.SetIndexLock("Orders/Totals", IndexLockMode.LockedIgnore);