EnumerateDirectories(DirectoryInfo, string, SearchOption) Method

Returns an enumerable collection of directory names that match a search pattern in a specified @this, and optionally searches subdirectories.
Namespace: Z.IO.Extensions
Assembly: Z.ExtensionMethods.WithNamespace.dll

Syntax

public static IEnumerable`1 EnumerateDirectories(this DirectoryInfo this, string searchPattern, SearchOption searchOption)

Parameters

this
Type:  DirectoryInfo
The directory to search.
searchPattern
Type:  String
The search string to match against the names of directories in .
searchOption
Type:  SearchOption
One of the enumeration values that specifies whether the search operation should include only the current directory or should include all subdirectories.The default value is .

Return Value

Type:  IEnumerable`1
Powered by ZZZ Projects .NET Documentation Generator 0.0.2 (Alpha)