using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Taxonomy;
using System.Collections.ObjectModel;
namespace TaxonomyTermStores
{
class Program
{
static void Main(string[] args)
{
using (SPSite site = new SPSite("http://serverName:11111/sites/MMS/"))
{
////TaxonomySession class is used to wrap up all of the associated TermStore objects for a SPSite object.
TaxonomySession session = new TaxonomySession(site);
////Get the particular term store associated with the site
TermStore termStore = session.TermStores["Managed Metadata Service"];
////Get all the LCID of the working languages for this termstore
Collection<int> languages = termStore.Languages;
foreach (int language in languages)
{
Console.WriteLine(language);
}
Console.ReadLine();
}
}
}
}