DocumentHelper.GetDocument Method (Int32, String, Boolean, TreeProvider) |
Returns current document version. If versioning used, gets the current VersionHistory record, if not, gets the record directly from the database.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 9.0.0
Syntaxpublic static TreeNode GetDocument(
int nodeId,
string cultureCode,
bool combineWithDefaultCulture,
TreeProvider tree
)
Parameters
- nodeId
- Type: System.Int32
Node ID to retrieve - 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. - tree
- Type: CMS.DocumentEngine.TreeProvider
TreeProvider to use
Return Value
Type:
TreeNode
See Also