Click or drag to resize
TreeProvider.SelectNodes Method (String, String, String, Boolean, String, String, String, Int32, Boolean, Guid, String, Boolean, Int32, String)
Returns nodes without coupled data specified by node alias path, culture and site name, optionally combined with default culture.

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

Parameters

siteName
Type: System.String
Nodes site name
aliasPath
Type: System.String
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: System.String
Nodes culture code
combineWithDefaultCulture
Type: System.Boolean
Indicates whether node in default culture should be returned if node in specified culture was not found.
classNames
Type: System.String
List of class names separated by semicolon (e.g.: "cms.article;cms.product")
where
Type: System.String
Where condition for the data selection
orderBy
Type: System.String
Order by clause for the data selection
maxRelativeLevel
Type: System.Int32
Maximum child level of the selected nodes
selectOnlyPublished
Type: System.Boolean
Select only published nodes.
relationshipWithNodeGuid
Type: System.Guid
Select nodes that are related to node with this GUID.
relationshipName
Type: System.String
Relationship name
relatedNodeIsOnTheLeftSide
Type: System.Boolean
Indicates whether the related node is located on the left side of the relationship
topN (Optional)
Type: System.Int32
Limits the number of returned items.
columns (Optional)
Type: System.String
Columns to be selected. Columns definition must contain mandatory columns (NodeID, NodeLinkedNodeID, DocumentCulture)

Return Value

Type: InfoDataSet<TreeNode>
See Also