Click or drag to resize
VersionManagerEnsureVersion Method
Ensures that the document version history is present for the given document, returns the document version.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 9.0.0
Syntax
C#
public int EnsureVersion(
	TreeNode node,
	bool nodeIsPublished,
	bool nodeDeletion = false,
	WorkflowInfo forceWorkflow = null
)

Parameters

node
Type: CMS.DocumentEngineTreeNode
Document node
nodeIsPublished
Type: SystemBoolean
Document is published
nodeDeletion (Optional)
Type: SystemBoolean
Indicates if the version should be ensured for the recycle bin
forceWorkflow (Optional)
Type: CMS.WorkflowEngineWorkflowInfo
Workflow instance to force to apply

Return Value

Type: Int32
Remarks
The document is updated to the database, there is no need to update it after
See Also