EnumerateFileSystemEntries Method

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

Returns an enumerable collection of file-system entries in a specified path.

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

public static IEnumerable EnumerateFileSystemEntries(
	string path
)

Parameters

path
Type: System..::..String
The directory to search.

Return Value

Type: System.Collections..::..IEnumerable
An enumerable collection of file-system entries in the directory specified by path.

You can specify relative path information with the path parameter. Relative path information is interpreted as relative to the current working directory, which you can determine by using the GetCurrentDirectory method.

The returned collection is not cached; each call to the GetEnumerator on the collection will start a new enumeration.

Show: