DocumentHelperInsertNewCultureVersion Method (TreeNode, TreeProvider, String, Boolean, Boolean) |
Inserts a new document culture version.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 10.0.0
Syntax public static void InsertNewCultureVersion(
TreeNode node,
TreeProvider tree,
string cultureCode,
bool createVersion = true,
bool allowCheckOut = true
)
Parameters
- node
- Type: CMS.DocumentEngineTreeNode
Document node - tree
- Type: CMS.DocumentEngineTreeProvider
TreeProvider to use - cultureCode
- Type: SystemString
Culture code of new culture version (If not specified, node.DocumentCulture property is used.) - createVersion (Optional)
- Type: SystemBoolean
Create a new version for document under workflow. - allowCheckOut (Optional)
- Type: SystemBoolean
If true, document check out is allowed on the insert action.
See Also