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