VersionManagerEnsureVersion 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: 11.0.0
Syntax 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:
Int32Remarks The document is updated to the database, there is no need to update it after
See Also