VDirectoryInfo.GetFiles Method
Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9313)
GetFiles()
Returns an array that contains instances of the VFileInfo that are located in a directory.
Declaration
public VFileInfo[] GetFiles()
Returns
| Type | Description | 
|---|---|
| VFileInfo[] | An array that contains instances of the VFileInfo that are located in a directory.  | 
    
GetFiles(String)
Returns an array that contains full paths to files
that are located in a directory
and their name matches the given searchPattern.
Declaration
public VFileInfo[] GetFiles(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 | 
|---|---|
| VFileInfo[] | An array that contains instances of the VFileInfo that are located in a directory
and their name matches the given   | 
    
GetFiles(String, SearchOption)
Returns an array that contains 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 VFileInfo[] GetFiles(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 | 
|---|---|
| VFileInfo[] | An array that contains instances of the VFileInfo that are located in a directory
and their name matches the given   |