Searches the files and folders contained in the specified folder.

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

Syntax

C#
ContentPage SearchFolderContent(
	int folderId,
	string pattern,
	int startIndex,
	int numItems,
	string sortExpression = null,
	SubfolderFilter subfolderFilter = SubfolderFilter.IncludeSubfoldersFolderStructure
)
Visual Basic
Function SearchFolderContent ( 
	folderId As Integer,
	pattern As String,
	startIndex As Integer,
	numItems As Integer,
	Optional sortExpression As String = Nothing,
	Optional subfolderFilter As SubfolderFilter = SubfolderFilter.IncludeSubfoldersFolderStructure
) As ContentPage

Parameters

folderId
Type: System..::..Int32
Folder Identifier
pattern
Type: System..::..String
The pattern to search for
startIndex
Type: System..::..Int32
Start index to retrieve items
numItems
Type: System..::..Int32
Max Number of items
sortExpression
Type: System..::..String
The sort expression in a SQL format, e.g. FileName ASC
subfolderFilter
Type: DotNetNuke.Services.Assets..::..SubfolderFilter
paramsubfolderFilterM:DotNetNuke.Services.Assets.IAssetManager.SearchFolderContent(System.Int32,System.String,System.Int32,System.Int32,System.String,DotNetNuke.Services.Assets.SubfolderFilter)

Return Value

The list of files and folders contained in the specified folder paginated

See Also