Click or drag to resize
TreeHelperSelectNodes Method (String, Boolean, String, String, String, Int32, Boolean)
Selects tree nodes according to provided parameters and returns them as dataset. If classNames not specified, the result does not contain coupled data.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax
C#
public static TreeNodeDataSet SelectNodes(
	string aliasPath,
	bool combineWithDefaultCulture,
	string classNames = null,
	string where = null,
	string orderBy = null,
	int maxRelativeLevel = -1,
	bool selectOnlyPublished = true
)

Parameters

aliasPath
Type: SystemString
Path. It may contain % and _ as wild card characters for any number of unknown characters or one unknown character respectively (for MS SQL)
combineWithDefaultCulture
Type: SystemBoolean
Specifies if return the default culture document when specified culture not found
classNames (Optional)
Type: SystemString
List of classNames to select separated by semicolon (e.g.: "cms.article;cms.product")
where (Optional)
Type: SystemString
Where condition to use for the data selection
orderBy (Optional)
Type: SystemString
Order by clause to use for the data selection
maxRelativeLevel (Optional)
Type: SystemInt32
Maximal child level of the selected nodes
selectOnlyPublished (Optional)
Type: SystemBoolean
Select only published nodes

Return Value

Type: TreeNodeDataSet
See Also