DirectoryEnumerateDirectories Method (String, String, SearchOption) |
Returns an enumerable collection of directory names that match a search pattern in a specified path,
and optionally searches subdirectories.
Namespace: CMS.AmazonStorageAssembly: CMS.AmazonStorage (in CMS.AmazonStorage.dll) Version: 10.0.0
Syntax public override IEnumerable<string> EnumerateDirectories(
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 only the current directory or should include all subdirectories.
Return Value
Type:
IEnumerableStringAn enumerable collection of the full names (including paths) for the directories in the directory specified by
path and that match the specified search pattern and option.
See Also