DirectoryInfo.GetDirectories Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns the subdirectories of the current directory.

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

NameDescription
System_CAPS_pubmethodGetDirectories()

Returns the subdirectories of the current directory.

System_CAPS_pubmethodGetDirectories(String)

Returns an array of directories in the current DirectoryInfo matching the given search criteria.

System_CAPS_pubmethodGetDirectories(String, SearchOption)

Returns an array of directories in the current DirectoryInfo matching the given search criteria and using a value to determine whether to search subdirectories.

Return to top
Show: