EnumeratorBase: MoveNext

MoveNext

Advances the current index, returning if the advancement succeeded.



 Public Function MoveNext ( ) As Boolean

Return Values

Boolean -  True if the index was advanced; otherwise False.

Remarks

MoveNext will return False when the enumeration initially finishes. If additional calls are made to MoveNext an InvalidOperationException will be thrown.

Exceptions

ExceptionCondition
InvalidOperationException The enumeration has already finished.
-or-
The collection was modified after the enumerator was created.

See Also

Project CorLib Overview

Class EnumeratorBase Overview