您的位置:首页 > 编程语言 > Go语言

怎么用AddFolderWithCategory? (Vault)

2011-11-02 12:06 120 查看
问:我想通过编程在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);.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: