SharePoint wiki 分类获取所有的
2012-12-25 16:35
10 查看
Hi,
Regarding how to read all term set you can try the following code.
e.g.
For more information about the TermSet you can see the following document.
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.taxonomy.taxonomysession.aspx
Regarding how to read all term set you can try the following code.
e.g.
static void TermSetDemo(SPSite site) { TaxonomySession session = new TaxonomySession(site); // Get all the TermStores associated with the provided site. TermStoreCollection termStores = session.TermStores; foreach (Group item in termStores[0].Groups) { Console.WriteLine(item.Name+":"+item.Id.ToString()); } Console.WriteLine(termStores.Count); //get wiki site group guid //72174740-c695-4412-a87f-279cbf7f88cb Group wikiGroup = termStores[0].GetGroup(new Guid("72174740-c695-4412-a87f-279cbf7f88cb"));//wikiGroup.TermSets[0].Terms[0] foreach (TermSet set in wikiGroup.TermSets) { foreach (Term item in set.Terms) { Console.WriteLine(item.Name); Console.WriteLine("--------"); } } }
For more information about the TermSet you can see the following document.
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.taxonomy.taxonomysession.aspx
相关文章推荐
- [10月15日的脚本] 从Microsoft SharePoint Server 2010中获取签出文件列表
- php递归无限级分类【先序遍历算】,获取任意节点下所有子孩子
- SQLServer2005获取所有分类下TOPN条记录
- sharepoint获取是否为输入域用户SharePoint PeopleEditor 控件的使用
- Yii Framework框架获取分类下面的所有子类方法
- SharePoint jQurey类库异步方式获取List数据
- Magento获取指定分类下的所有子分类信息
- 使用Host-Provider方式开发的App,无法获取SharePoint Online中的item
- magento 获取所有分类
- mysql--获取每个分类下的所有内容
- MySQL获取所有分类的前N条记录
- MySQL获取所有分类的前N条记录
- SharePoint WebService——根据群组名称获取成员信息
- MySQL获取所有分类的前N条记录
- SharePoint Web Service系列:获取文档的属性信息
- Yii Framework框架获取分类下面的所有子类方法
- mysql获取所有分类的前n条记录的两种方法浅析
- Asp.net树形产品结构菜单,根据产品分类获取产品及其子类的所有产品和数量统计
- magento 获取所有分类并打印
- php递归无限级分类【先序遍历算】,获取任意节点下所有子孩子