Click or drag to resize

DirectoryGetDirectories(String, String) Method

Returns an array populated with the names of directories in the specified directory matched against the search pattern.

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

Parameters

path  String
Directory to search.
searchPattern  String
Pattern to match the directories against.

Return Value

String
A string array populated with the names of directories in the specified directory that match the search pattern.
Exceptions
ExceptionCondition
InvalidDirectoryLocationExceptionInvalid Directory location.
DirectoryNotFoundExceptionThe specified directory does not exist.
PathTooLongExceptionThe specified directory is greater than 248 characters.
IOExceptionFile System error.
UnauthorizedAccessExceptionThe user does not have the require permissions.
ArgumentExceptionThe specified argument contains invalid characters.
ArgumentNullExceptionThe specified argument is null.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also