PrepAway - Latest Free Exam Questions & Answers

Which code segment should you add at line 03?

You need to create a Web Part that adds a term set to the current SharePoint site collection’s
term store. You write the following code segment. (Line numbers are included for reference only.)
01 TaxonomySession session = new TaxonomySession ( SPContext.Current..Site ) ; 02 TermSet
addedTerm = session.TermStores [O] .Groups [” MyNewTermStore “] . CreateTermSet (
txtBoxTermSetToAdd.Text ) ; 03 Which code segment should you add at line 03?

PrepAway - Latest Free Exam Questions & Answers

A.
addedTerm.TermStore.CommitAll ();

B.
addedTerm.Export ();

C.
SPContext.Current.Web.AllouUnsafeUpdates = true;

D.
SPContext.Current.Site.WebAppllcation.Update ();


Leave a Reply