Platform Core .NET Assemblies API
GetDirectories(String) Method
See Also  Send Feedback
Terrasoft.IO Namespace > IDirectory Interface > GetDirectories Method : GetDirectories(String) Method
path
The relative or absolute path to the directory to search. This string is not case-sensitive.

Glossary Item Box

Returns the names of subdirectories (including their paths) in the specified directory.

Syntax

 
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.

Exceptions

ExceptionDescription
System.UnauthorizedAccessExceptionThe caller does not have the required permission.
System.ArgumentExceptionpath is a zero-length string, contains only white space, or contains one or more invalid characters.
System.ArgumentNullExceptionpath is null.
System.IO.IOExceptionpath is a file name.
System.IO.DirectoryNotFoundExceptionThe specified path is invalid (for example, it is on an unmapped drive).

Requirements

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

See Also

© Terrasoft 2002-2018.