问:我想通过编程在Vault中创建一个文件夹,并且设置它的类型。
答:请参考下面的例子代码:
DocumentService docSvc = m_serviceManager.DocumentService;
long parentId = docSvc.GetFolderRoot().Id;
CategoryService catSvc= m_serviceManager.CategoryService;
Cat[] cts = catSvc.GetCategoriesByEntityClassId("Folder", true);
DocumentServiceExtensions docExt = m_serviceManager.DocumentServiceExtensions;
docExt.AddFolderWithCategory("newFolder", parentId, false,cts[1].Id);.