VDirectoryInfo.EnumerateDirectories Method
Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9119)
EnumerateDirectories()
Returns an enumerator that yields instances of the VDirectoryInfo that are located in a directory.
Declaration
public IEnumerable<VDirectoryInfo> EnumerateDirectories()
Returns
Type | Description |
---|---|
IEnumerable<VDirectoryInfo> | An enumerator that yields instances of the VDirectoryInfo that are located in a directory. |
EnumerateDirectories(String)
Returns an enumerator that yields instances of the VDirectoryInfo that are located in a directory.
Declaration
public IEnumerable<VDirectoryInfo> EnumerateDirectories(string searchPattern)
Parameters
Type | Name | Description |
---|---|---|
String | searchPattern | The search pattern to which the name of the returned directory must conform. Search patterns may include '?' and '*' wildcards. |
Returns
Type | Description |
---|---|
IEnumerable<VDirectoryInfo> | An enumerator that yields that yields instances of the VDirectoryInfo that are located in a directory
and their name matches the given |
EnumerateDirectories(String, SearchOption)
Returns an enumerator that yields instances of the VDirectoryInfo
that are located in a directory
and their name matches the given searchPattern
.
When the searchPattern
has value AllDirectories then this method returns all subdirectories recursively;
otherwise returns only directories on the first level of the hierarchy.
Declaration
public IEnumerable<VDirectoryInfo> EnumerateDirectories(string searchPattern, SearchOption searchOption)
Parameters
Type | Name | Description |
---|---|---|
String | searchPattern | The search pattern to which the name of the returned directory must conform. Search patterns may include '?' and '*' wildcards. |
SearchOption | searchOption | When the searchOption has value AllDirectories then this method returns all subdirectories recursively; otherwise returns only directories on the first level of the hierarchy. |
Returns
Type | Description |
---|---|
IEnumerable<VDirectoryInfo> | An enumerator that yields instances of the VDirectoryInfo located in a directory
and their name matches the given |