|
FilePathGetDirectories(DirectoryInfo, String, SearchOption, ActionException) Method
|
Returns the subdirectories that match the specified search pattern in the specified directory, and optionally searches subdirectories.
Namespace: GSF.IOAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax static member GetDirectories :
directory : DirectoryInfo *
?searchPattern : string *
?searchOption : SearchOption *
?exceptionHandler : Action<Exception>
(* Defaults:
let _searchPattern = defaultArg searchPattern "*"
let _searchOption = defaultArg searchOption SearchOption.AllDirectories
let _exceptionHandler = defaultArg exceptionHandler null
*)
-> DirectoryInfo[]
GSF.IO.FilePath.GetDirectories = function(directory, searchPattern, searchOption, exceptionHandler);
View SourceParameters
- directory DirectoryInfo
- The directory to search.
- searchPattern String (Optional)
- The search string to match against the names of subdirectories in the directory. This parameter can contain a combination of valid literal and wildcard characters, but doesn't support regular expressions.
- searchOption SearchOption (Optional)
- One of the enumeration values that specifies whether the search operation should include all subdirectories or only the current directory.
- exceptionHandler ActionException (Optional)
- Handles exceptions thrown during directory enumeration.
Return Value
DirectoryInfoAn array of the
DirectoryInfo objects representing the subdirectories that match the specified search criteria.
See Also