Click or drag to resize
DocumentHelper.GetDocument Method (Int32, TreeProvider)
Returns current document version. If versioning is used, gets the current VersionHistory record, otherwise gets the record directly from the database.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 10.0.0
Syntax
C#
public static TreeNode GetDocument(
	int documentId,
	TreeProvider tree
)

Parameters

documentId
Type: System.Int32
Document ID to retrieve
tree
Type: CMS.DocumentEngine.TreeProvider
TreeProvider to use for the DB access

Return Value

Type: TreeNode
See Also