Share via


MoveNext Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Advances to the next element in the collection.

Namespace:  System.IO
Assembly:  System.IO (in System.IO.dll)

Syntax

'Declaration
Public Function MoveNext As Boolean
public bool MoveNext()
public:
virtual bool MoveNext() sealed
abstract MoveNext : unit -> bool 
override MoveNext : unit -> bool 
public final function MoveNext() : boolean

Return Value

Type: System. . :: . .Boolean
true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.

Implements

IEnumerator. . :: . .MoveNext() () () ()

.NET Framework Security

See Also

Reference

FileEnum Class

System.IO Namespace