Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

VDirectoryInfo.EnumerateFileSystemInfos Method

Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9147)

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 searchPattern.

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 searchPattern.

In This Article
  • EnumerateFileSystemInfos()
  • EnumerateFileSystemInfos(String)
  • EnumerateFileSystemInfos(String, SearchOption)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies