Click or drag to resize
TreeProviderSelectSingleNode Method (String, String, String, Boolean, String, String, String, Int32, Boolean, String)
Returns single node specified by alias path, culture and site name matching the provided parameters. Result contains coupled data only if classNames are specified.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax
C#
public virtual TreeNode SelectSingleNode(
	string siteName,
	string aliasPath,
	string cultureCode,
	bool combineWithDefaultCulture,
	string classNames,
	string where,
	string orderBy,
	int maxRelativeLevel,
	bool selectOnlyPublished,
	string columns = null
)

Parameters

siteName
Type: SystemString
Node site name.
aliasPath
Type: SystemString
Node alias path.
cultureCode
Type: SystemString
Node culture code.
combineWithDefaultCulture
Type: SystemBoolean
Indicates whether node in default culture should be returned if node in specified culture was not found.
classNames
Type: SystemString
List of class names separated by semicolon (e.g.: "cms.article;cms.product").
where
Type: SystemString
Where condition to use for the data selection.
orderBy
Type: SystemString
Order by clause to use for the data selection.
maxRelativeLevel
Type: SystemInt32
Maximum child level of the selected nodes.
selectOnlyPublished
Type: SystemBoolean
Select only published nodes.
columns (Optional)
Type: SystemString
Columns to be selected. Columns definition must contain mandatory columns (NodeID, NodeLinkedNodeID, DocumentCulture).

Return Value

Type: TreeNode
See Also