DocumentHelper GetDocument Method (String, String, String, Boolean, String, String, String, Int32, Boolean, String, TreeProvider)Kentico 8.1 API Reference
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.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

siteName
Type: OnlineSystem String
Nodes site name
aliasPath
Type: OnlineSystem 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: OnlineSystem String
Nodes culture code
combineWithDefaultCulture
Type: OnlineSystem Boolean
Indicates whether node in default culture should be returned if node in specified culture was not found.
classNames
Type: OnlineSystem String
List of class names separated by semicolon (e.g.: "cms.article;cms.product")
where
Type: OnlineSystem String
Where condition for the data selection
orderBy
Type: OnlineSystem String
Order by clause for the data selection
maxRelativeLevel
Type: OnlineSystem Int32
Maximum child level of the selected nodes
selectOnlyPublished
Type: OnlineSystem Boolean
Select only published nodes.
columns
Type: OnlineSystem String
Columns to be selected
tree
Type: CMS.DocumentEngine TreeProvider
TreeProvider to use

Return Value

Type: TreeNode
See Also