Click or drag to resize

DirectoryInfoGetDirectories(String) Method

Return the subdirectories of the current instance that match the specified search pattern.

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

Parameters

searchPattern  String
String to match the subdirectories against.

Return Value

DirectoryInfo
Array of DirectoryInfo instances to the subdirectories 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 permissions to the specified directory.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also