TreeProviderSelectSingleNodeNodeType Method (String, String, String, Boolean, String, Boolean, Boolean, Boolean) |
Returns single node specified by alias path, culture and site name.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 12.0.0
Syntax protected virtual NodeType SelectSingleNode<NodeType>(
string siteName,
string aliasPath,
string cultureCode,
bool combineWithDefaultCulture,
string className,
bool selectOnlyPublished,
bool checkPermissions,
bool selectCoupledData
)
where NodeType : new(), TreeNode
Parameters
- siteName
- Type: SystemString
Node site name - aliasPath
- Type: SystemString
Node alias path - cultureCode
- Type: SystemString
Culture code - combineWithDefaultCulture
- Type: SystemBoolean
Indicates whether node in default culture should be returned if node in specified culture was not found. - className
- Type: SystemString
Node class name (e.g.: "cms.article") - selectOnlyPublished
- Type: SystemBoolean
Select only published nodes. - checkPermissions
- Type: SystemBoolean
Indicates whether permissions should be checked. - selectCoupledData
- Type: SystemBoolean
Indicates whether coupled data should be contained in the result.
Type Parameters
- NodeType
Return Value
Type:
NodeTypeSee Also