DirectoryGetDirectories Method (String, String) |
Returns the names of subdirectories (including their paths) that match the specified search pattern in the specified directory.
Namespace: CMS.IOAssembly: CMS.IO (in CMS.IO.dll) Version: 10.0.0
Syntaxpublic static string[] GetDirectories(
string path,
string searchPattern
)
Parameters
- path
- Type: SystemString
The relative or absolute path to the directory to search. This string is not case-sensitive. - searchPattern
- Type: SystemString
Search pattern.
Return Value
Type:
StringAn array of the full names (including paths) of the subdirectories that match the search pattern in the specified directory, or an empty array if no directories are found.
Remarks
See Also