VDirectoryInfo.GetDirectories Method
Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9119)
GetDirectories()
Returns an array that contains instances of the VDirectoryInfo that are located in a directory.
Declaration
public VDirectoryInfo[] GetDirectories()
Returns
Type | Description |
---|---|
VDirectoryInfo[] | An array that contains instances of the VDirectoryInfo that are located in a directory. |
GetDirectories(String)
Returns an array that contains instances of the VDirectoryInfo
that are located in a directory
and their name matches the given searchPattern
.
Declaration
public VDirectoryInfo[] GetDirectories(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 |
---|---|
VDirectoryInfo[] | An array that contains instances of the VDirectoryInfo that are located in a directory
and their name matches the given |
GetDirectories(String, SearchOption)
Returns an array that contains 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 VDirectoryInfo[] GetDirectories(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 subdirectories on the first level of the hierarchy. |
Returns
Type | Description |
---|---|
VDirectoryInfo[] | An array that contains instances of the VDirectoryInfo located in a directory
and their name matches the given |