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

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

Syntax

C#
public virtual IEnumerable<IFileInfo> SearchFiles(
	IFolderInfo folder,
	string pattern,
	bool recursive
)
Visual Basic
Public Overridable Function SearchFiles ( 
	folder As IFolderInfo,
	pattern As String,
	recursive As Boolean
) 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
paramrecursiveM:DotNetNuke.Services.FileSystem.FolderManager.SearchFiles(DotNetNuke.Services.FileSystem.IFolderInfo,System.String,System.Boolean)

Return Value

The list of files contained in the specified folder.

Implements

IFolderManager..::..SearchFiles(IFolderInfo, String, Boolean)

See Also