Click or drag to resize

VirtualDirectoryGetDirectories Method (String, String, SearchOption)

Gets an array of directories matching the specified search pattern from the current directory, using a value to determine whether to search subdirectories.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static string[] GetDirectories(
	string path,
	string searchPattern,
	SearchOption searchOption
)

Parameters

path
Type: SystemString
The path to search.
searchPattern
Type: SystemString
The search string to match against the names of files in path. The parameter cannot end in two periods ("..") or contain two periods ("..") followed by DirectorySeparatorChar or AltDirectorySeparatorChar, nor can it contain any of the characters in InvalidPathChars.
searchOption
Type: System.IOSearchOption
One of the SearchOption values that specifies whether the search operation should include all subdirectories or only the current directory.

Return Value

Type: String
A String array of directories matching the search pattern.
See Also