using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Taxonomy;
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 the LCID of the default working language for this TermStore
Console.WriteLine(termStore.DefaultLanguage);
Console.ReadLine();
}
}
}
}