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: 2023.1.2.0 (2023.1.2.0)
Syntax
C#
public static string[] GetFiles(
	string path,
	string searchPattern = "*",
	SearchOption searchOption = SearchOption.TopDirectoryOnly
)

Parameters

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

Return Value

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