Search the files contained in the specified folder, for a matching pattern

Namespace: DotNetNuke.Services.FileSystem
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
IEnumerable<IFileInfo> SearchFiles(
	IFolderInfo folder,
	string pattern,
	bool recursive = false
)
Visual Basic
Function SearchFiles ( 
	folder As IFolderInfo,
	pattern As String,
	Optional recursive As Boolean = false
) As IEnumerable(Of IFileInfo)

Parameters

folder
Type: DotNetNuke.Services.FileSystem..::..IFolderInfo
The folder from which to retrieve the files.
pattern
Type: System..::..String
The patter to search for
recursive
Type: System..::..Boolean
Whether or not to include all the subfolders

Return Value

The list of files contained in the specified folder.

See Also