Using Enumerators with the Repository

When the Repository establishes an enumerator for you, it reads the Repository database to determine which items should appear in the list, and the order in which those items should appear. The enumerator does not, however, contain Repository items. Rather, each element of an enumerator identifies a Repository item. To retrieve a particular item identified by the next element of an enumerator, use the Next method of the enumerator interface.

The elements in an enumerator identify the items in a collection as described by the Repository database when the enumerator was instantiated. After you instantiate the enumerator, the collection in the database can change. Specifically, the collection can change in these ways: