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

Glossary Item Box

Returns full path names of the files 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

Array of the full-path file names in the specified directory. Returns empty array if no files found.

Exceptions

ExceptionDescription
System.IO.IOException

path is a file name.

-or-

A network error has occurred.

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.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.