VersionManagerEnsureVersionInternal Method |
Ensures that the document version history is present for the given document, returns the document version.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax 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:
Int32Remarks The document is updated to the database, there is no need to update it after
See Also