Click or drag to resize

VirtualDirectoryGetDirectories(String, String, SearchOption) Method

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: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public static string[] GetDirectories(
	string path,
	string searchPattern,
	SearchOption searchOption
)

Parameters

path  String
The path to search.
searchPattern  String
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  SearchOption
One of the SearchOption values that specifies whether the search operation should include all subdirectories or only the current directory.

Return Value

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