Persistate API documentation
ResetIndex Method (keyNum)
NamespacesPersistateIndexedList<(Of <(<'T>)>)>ResetIndex(Int32)

[This is preliminary documentation and is subject to change.]

Resets the index for the given key.
Declaration Syntax
public void ResetIndex(
	int keyNum
keyNum (Int32)
The key number of the index to be reset.

If a distinctive property in an object in a collection is modified, the corresponding index is not automatically updated. It is up to the programmer to ensure that the index is recomputed if they are to be used again. This method does that, simply by removing the index. The next time the index is accessed, it will be recreated in the usual way.

A less drastic way of updating index entries for individual objects is to use the Reindex method.

Assembly: Persistate (Module: Persistate) Version: (