Click or drag to resize
VersionManagerEnsureVersionInternal 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: 8.2.23
Syntax
C#
protected virtual int EnsureVersionInternal(
	TreeNode node,
	bool nodeIsPublished,
	bool nodeDeletion,
	WorkflowInfo forceWorkflow
)

Parameters

node
Type: CMS.DocumentEngineTreeNode
Document node
nodeIsPublished
Type: SystemBoolean
Document is published
nodeDeletion
Type: SystemBoolean
Indicates if the version should be ensured for the recycle bin
forceWorkflow
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