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