Click or drag to resize
DirectoryEnumerateDirectories Method (String)
Returns an enumerable collection of directory names in a specified path.

Namespace: CMS.IO
Assembly: CMS.IO (in CMS.IO.dll) Version: 11.0.0
public static IEnumerable<string> EnumerateDirectories(
	string path


Type: SystemString
The relative or absolute path to the directory to search. This string is not case-sensitive.

Return Value

Type: IEnumerableString
An enumerable collection of the full names (including paths) for the directories in the directory specified by path.

This method is identical to EnumerateDirectories(String, String) with the asterisk (*) specified as the search pattern, so it returns all subdirectories.

If you need to search subdirectories recursively, use the EnumerateDirectories(String, String, SearchOption) method, which enables you to specify a search of all subdirectories.

See Also