DirectoryInfo GetDirectories Method (String, SearchOption)Kentico 8.0 API Reference
Returns an array of directories in the current DirectoryInfo matching the given search criteria and using a value to determine whether to search subdirectories.

Namespace: CMS.IO
Assembly: CMS.IO (in CMS.IO.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

searchPattern
Type: OnlineSystem String
Search pattern
searchOption
Type: CMS.IO SearchOption
Specifies whether to search the current directory, or the current directory and all subdirectories.

Return Value

Type:  DirectoryInfo 
See Also