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
C#
public void ResetIndex(
	int keyNum
)
Parameters
keyNum (Int32)
The key number of the index to be reset.
Remarks

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: 0.6.1.20 (0.6.1.20)