public Folder CreateFolder( Folder parentFolder, string folderName, bool inherit, bool duplicateNames )
Create a folder
Syntax
public Folder CreateFolder( Folder parentFolder, string folderName, bool inherit, bool duplicateNames )
Parameters
- parentFolder
- Type: Folder
Parent Folder, in which the folder is created. Object. Access path: PublicAPI.Docflow.Folder
- folderName
- Type: System String
Folder Name
- inherit
- Type: System Boolean
Inherit permissions of the parent folder? (optional parameter)
- duplicateNames
- Type: System Boolean
Duplicate folder names? (optional parameter)
Return Value
Type: FolderCreated Folder
Examples
//load the folder by ID var prntFolder = PublicAPI.Docflow.Folder.Load(3); //new folder name var folderName = "New Test Folder"; //create the new folder var newFolder = PublicAPI.Docflow.Folder.CreateFolder(prntFolder, folderName, inherit, dupNames); //newFolder - created folder //WARNING!! duplicateNames parameter use case: //1. If duplicateNames = true, then folders with the same name will be created //2. If duplicateNames = false, then when the names match, the folder name will get (1) (2,3 and so on), //according to the number of folders with the same name)
See Also