System.IO.DirectoryInfo.GetDirectories Method

Returns the subdirectories of the current directory.

Syntax

public DirectoryInfo[] GetDirectories ()

Returns

An array of System.IO.DirectoryInfo objects.

Remarks

If there are no subdirectories, this method returns an empty array. This method is not recursive.

This method pre-populates the values of the following System.IO.DirectoryInfo properties:

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0