C#
Parameters
- path
- The relative or absolute path to the directory to search. This string is not case-sensitive.
Return Value
An array of the full names (including paths) of subdirectories in the specified path, or an empty array if no directories are found.Exception | Description |
---|---|
System.UnauthorizedAccessException | The caller does not have the required permission. |
System.ArgumentException | path is a zero-length string, contains only white space, or contains one or more invalid characters. |
System.ArgumentNullException | path is null . |
System.IO.IOException | path is a file name. |
System.IO.DirectoryNotFoundException | The specified path is invalid (for example, it is on an unmapped drive). |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2