Click or drag to resize

DirectoryInfoGetFiles(String) Method

Return the files of the current directory that match the specified search pattern.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public FileInfo[] GetFiles(
	string searchPattern
)

Parameters

searchPattern  String
String to match the files against.

Return Value

FileInfo
Array of FileInfo instances to the files of the current directory that match the specified pattern.
Exceptions
ExceptionCondition
DirectoryNotFoundExceptionThe current directory does not exist.
ArgumentExceptionThe search pattern contains invalid characters.
SecurityExceptionThe user does not have the required permissions to this directory.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also