Click or drag to resize
TreeProviderSelectNodes Method (String, String, String, Boolean, String, String, String, Int32, Boolean, Int32, String)
Returns nodes specified by node alias path, culture and site name, optionally combined with default culture. Result contains coupled data only if classNames are specified.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 12.0.0
Syntax
C#
public virtual InfoDataSet<TreeNode> SelectNodes(
	string siteName,
	string aliasPath,
	string cultureCode,
	bool combineWithDefaultCulture,
	string classNames = null,
	string where = null,
	string orderBy = null,
	int maxRelativeLevel = -1,
	bool selectOnlyPublished = true,
	int topN = 0,
	string columns = null
)

Parameters

siteName
Type: SystemString
Nodes site name
aliasPath
Type: SystemString
Nodes alias path - may contain % and _ as wild card characters for any number of unknown characters or one unknown character respectively (for MS SQL).
cultureCode
Type: SystemString
Nodes culture code
combineWithDefaultCulture
Type: SystemBoolean
Indicates whether node in default culture should be returned if node in specified culture was not found.
classNames (Optional)
Type: SystemString
List of class names separated by semicolon (e.g.: "cms.article;cms.product")
where (Optional)
Type: SystemString
Where condition for the data selection
orderBy (Optional)
Type: SystemString
Order by clause for the data selection
maxRelativeLevel (Optional)
Type: SystemInt32
Maximum child level of the selected nodes
selectOnlyPublished (Optional)
Type: SystemBoolean
Select only published nodes.
topN (Optional)
Type: SystemInt32
Limits the number of returned items.
columns (Optional)
Type: SystemString
Columns to be selected. Columns definition must contain mandatory columns (NodeID, NodeLinkedNodeID, DocumentCulture)

Return Value

Type: InfoDataSetTreeNode
See Also