Returns the paths of files in the collection that match the specified search pattern.

Namespace:  Rebex.IO
Assembly:  Rebex.Common (in Rebex.Common.dll)

Syntax

Visual Basic
Public Function GetFiles ( _
	regExp As Regex _
) As String()
C#
public string[] GetFiles(
	Regex regExp
)

Parameters

regExp
Type: System.Text.RegularExpressions..::..Regex
The regular expression to match the paths or filenames against.

Return Value

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

Remarks

The method works in two different modes (determined by UsePath property): Filenames without path are searched and returned. This mode is used by default for collections returned by GetList method.Filenames with path are searched and returned. This mode is used by default for collection returned by GetItems method.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also