IOHelperGetFileNames Method

Returns a file list from the directory matching the given search pattern.

Definition

Namespace: Configuration.Helper
Assembly: Configuration.Helper (in Configuration.Helper.dll) Version: 2.0.5
C#
public static IList<string> GetFileNames(
	string path,
	string searchPattern
)

Parameters

path  String
The path of the directory.
searchPattern  String
The search string to match against the names of files.
This parameter can contain a combination of valid literal path and wild-card (* and ?) characters, but doesn't support regular expressions. The default pattern is "*", which returns all files.

Return Value

IListString
A collection of type string.

See Also