UtilDirectoryGetDirs(String, SearchOption, IEnumerableString, IEnumerableString, Boolean, Boolean) Method

Gets the directories those matches the criteria inside the specified directory and/or sub-DirectoryUtil.

Definition

Namespace: DevCase.Core.IO.FileSystem
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static IEnumerable<DirectoryInfo> GetDirs(
	string dirPath,
	SearchOption searchOption,
	IEnumerable<string> dirPathPatterns = null,
	IEnumerable<string> dirNamePatterns = null,
	bool ignoreCase = true,
	bool throwOnError = false
)

Parameters

dirPath  String
The root directory path to search for DirectoryUtil.
searchOption  SearchOption
The searching mode.
dirPathPatterns  IEnumerableString  (Optional)
The directory path pattern(s) to match.
dirNamePatterns  IEnumerableString  (Optional)
The directory name pattern(s) to match.
ignoreCase  Boolean  (Optional)
If , ignores the comparing case of dirPathPatterns and dirNamePatterns patterns.
throwOnError  Boolean  (Optional)
If set to , exceptions will be thrown, like access denied to directory.

Return Value

IEnumerableDirectoryInfo
An IEnumerableT instance containing the dirrectories information.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Exceptions

ArgumentException dirPath or searchOption

See Also