怎么用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);.
答:请参考下面的例子代码:
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);.
相关文章推荐
- 怎么实现 ExpandableListActivity with checkbox
- 怎么解决 Android studio的DefaultMavenFactory, Plugin with id 'com.github.dcendents.android-maven' not的问题
- android的启动出现loadlibrary failed with error 126:找不到指定模块。怎么解决。
- SSM项目整合遇到的问题总结-Error creating bean with name 'categoryController
- One Order行项目里Item Category是怎么计算出来的
- NOT LOGGED with replace该怎么理解
- Bash socket programming with /dev/tcp(大家能联想到怎么使用吗)
- ibtool failed with exit code 255怎么办?处理方法
- 分层查询中的start with和connect by怎么用
- stringWithFormat的作用,以及方括号怎么用啊?谢谢
- 分层查询中的start with和connect by怎么用
- caffe matlab 借口怎么提取灰度图的 feature ? What happened if I mixed the color images with gray images together for training ?
- Associating Icons with a Category 与 恶作剧软件 有关系吗?
- 分层查询中的start with和connect by怎么用
- wordpress去掉category怎么操作让url更简洁友好
- conflicts with same method from another category
- 在cmd窗口输入命令遇到You must run this command from a command prompt with administrator privilege怎么办?
- http://qt-project.org/wiki/Category:Developing_with_Qt::QtWebKit#ff7c0fcd6a31e735a61c001f75426961
- Plugin with id 'org.greenrobot.greendao' not found.怎么办?
- Objective-C静态库中含有category怎么办?