DirectoryEnumerateDirectories Method (String, String) |
Returns an enumerable collection of directory names that match a search pattern in a specified path.
Namespace: CMS.IOAssembly: CMS.IO (in CMS.IO.dll) Version: 13.0.131
Syntax public static IEnumerable<string> EnumerateDirectories(
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:
IEnumerableStringAn enumerable collection of the full names (including paths) for the directories in the directory specified by
path and that match the specified search pattern.
Remarks See Also