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

VDirectoryInfo.GetDirectories Method

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

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

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

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