Click or drag to resize

VirtualDirectoryGetFiles Method

Returns the names of files in the specified directory that match the specified search pattern, 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[] GetFiles(
	string path,
	string searchPattern = "*",
	SearchOption searchOption = SearchOption.TopDirectoryOnly
)

Parameters

path  String
The directory from which to retrieve the files.
searchPattern  String  (Optional)
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 System.IO.Path.DirectorySeparatorChar or System.IO.Path.AltDirectorySeparatorChar, nor can it contain any of the characters in System.IO.Path.InvalidPathChars.
searchOption  SearchOption  (Optional)
One of the System.IO.SearchOption values that specifies whether the search operation should include all subdirectories or only the current directory.

Return Value

String
A String array containing containing the names of files in the specified directory that match the specified search pattern.
See Also