In this article we will be seeing about the Term in SharePoint.In this article we will be seeing the following:
Get all the terms for a particular termset:using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.SharePoint;using Microsoft.SharePoint.Taxonomy;namespace EMM{ class Program { static void Main(string[] args) { using (SPSite site = new SPSite("http://servcerName:10/")) { TaxonomySession taxonomySession = new TaxonomySession(site); TermStore termStore = taxonomySession.TermStores["MMS"]; Group group = termStore.Groups["SharePoint Group"]; TermSet termSet = group.TermSets["BCS"]; TermCollection termCol = termSet.Terms; foreach (Term term in termCol) { Console.WriteLine(term.Name); } Console.ReadLine(); } } }}
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: