Share via


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)

Syntax

'Declaration
Public Shared Function EnumerateFileSystemEntries ( _
    path As String _
) As IEnumerable
public static IEnumerable EnumerateFileSystemEntries(
    string path
)
public:
static IEnumerable^ EnumerateFileSystemEntries(
    String^ path
)
static member EnumerateFileSystemEntries : 
        path:string -> IEnumerable 
public static function EnumerateFileSystemEntries(
    path : String
) : IEnumerable

Parameters

Return Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

Directory Class

System.IO Namespace