Returns current document version. If versioning is used, gets the current VersionHistory record, otherwise gets the record directly from the database. Result contains coupled data only if classNames are specified.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.0.0.0 (8.1.5347.20411)
Parameters
- siteName
- Type: System String
Nodes site name
- aliasPath
- Type: System String
Path. It 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.
- columns
- Type: System String
Columns to be selected
- tree
- Type: CMS.DocumentEngine TreeProvider
TreeProvider to use
Return Value
Type: TreeNodeSee Also