Click or drag to resize
TreeProvider.SelectSingleNode<NodeType> 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: 11.0.0
Syntax
C#
protected virtual NodeType SelectSingleNode<NodeType>(
	string siteName,
	string aliasPath,
	string cultureCode,
	bool combineWithDefaultCulture,
	string classNames,
	string where,
	string orderBy,
	int maxRelativeLevel,
	bool selectOnlyPublished,
	string columns
)
where NodeType : new(), TreeNode

Parameters

siteName
Type: System.String
Node site name
aliasPath
Type: System.String
Node 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
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.
columns
Type: System.String
Columns to be selected

Type Parameters

NodeType

Return Value

Type: NodeType
See Also