DirectoryGetDirectories Method (String, String, SearchOption) |
Gets the names of the subdirectories (including their paths) that match the specified search pattern in the current directory,
and optionally searches subdirectories.
Namespace: CMS.AzureStorageAssembly: CMS.AzureStorage (in CMS.AzureStorage.dll) Version: 13.0.131
Syntax public override string[] GetDirectories(
string path,
string searchPattern,
SearchOption searchOption
)
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. - searchOption
- Type: CMS.IOSearchOption
One of the enumeration values that specifies whether the search operation should include all subdirectories or only the current directory.
Return Value
Type:
StringAn array of the full names (including paths) of the subdirectories that match the specified criteria, or an empty array if no directories are found.
Exceptions Exception | Condition |
---|
PathTooLongException | path is too long |
ArgumentException | path contains invalid characters |
See Also