I want to be able to manage the GetDescription() and SetDescription() of the Taxonomy Term(as a managed metadata). In order to get the value of the Description, not of the Label of the Taxonomy Term.

enter image description here How should I manage these functions?

Any suggestion would be very much appreciated.

Thank you in advance!

1 Answer 1

    using (SPSite site = new SPSite("URL of site"))
            TaxonomySession taxonomySession = new TaxonomySession(site);
            TermStore termStore = taxonomySession.TermStores["MMMD Service"];
            Group group = termStore.Groups["Term Group"];               
            TermSet termSet = group.TermSets["Term Set"];
            Term term = termSet.Terms["term"];
            term.SetDescription("Test", 1033);           
  • Yes, that's the case! Even though I was more interested in the GetDescription(). The syntax would be term.GetDescription();
    – nbc
    Nov 27, 2017 at 16:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.