How to check if termset is present in a termset group using SSSOM in Sharepoint 2010?

Hello Sharepointers,

public void TermGroupExist()
    {

        ClientContext ctx = new ClientContext("http://mysharepoint.com");

        TaxonomySession ts = TaxonomySession.GetTaxonomySession(ctx);

        TermStore store = ts.TermStores[0];

        TermGroup termGroup = store.Groups.GetByName("Country");

        ctx.Load(store);
        ctx.Load(termGroup);

        ctx.ExecuteQuery();

}

Happy Sharepointing

Leave a Reply

Your email address will not be published. Required fields are marked *