Export (0) Print
Expand All

DirectoryInfo.EnumerateFileSystemInfos Method

When it is called by trusted applications, returns an enumerable collection of file system information in the current directory.

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

public IEnumerable<FileSystemInfo> EnumerateFileSystemInfos()

Return Value

Type: System.Collections.Generic.IEnumerable<FileSystemInfo>
An enumerable collection of file system information in the current directory.

ExceptionCondition
DirectoryNotFoundException

The path encapsulated in the FileSystemInfo object is invalid (for example, it is on an unmapped drive).

SecurityException

The caller does not have the required permission.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft