Click or drag to resize
TreeProviderSearch Method (String, String, String, String, SearchModeEnum, Boolean, String, Boolean, Boolean, String, String)
Searches data and returns results.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 10.0.0
Syntax
C#
public DataSet Search(
	string siteName,
	string searchNodePath,
	string cultureCode,
	string searchExpression,
	SearchModeEnum searchMode,
	bool searchChildNodes = true,
	string classNames = null,
	bool filterResultsByReadPermission = false,
	bool searchOnlyPublished = false,
	string whereCondition = null,
	string orderBy = null
)

Parameters

siteName
Type: SystemString
Site name
searchNodePath
Type: SystemString
Path of the starting node
cultureCode
Type: SystemString
Culture code
searchExpression
Type: SystemString
Search expression
searchMode
Type: CMS.SearchSearchModeEnum
Search mode
searchChildNodes (Optional)
Type: SystemBoolean
Indicates if child nodes should be searched
classNames (Optional)
Type: SystemString
List of class names to be searched in format application.class separated by semicolon.
filterResultsByReadPermission (Optional)
Type: SystemBoolean
Indicates if search results should be filtered by read permission for the current user. The default value is false
searchOnlyPublished (Optional)
Type: SystemBoolean
Indicates if only published documents should be searched
whereCondition (Optional)
Type: SystemString
Where condition
orderBy (Optional)
Type: SystemString
Order by clause

Return Value

Type: DataSet
See Also