Microsoft
70-573 · Question #273
70-573 Question #273: Real Exam Question with Answer & Explanation
Sign in or unlock 70-573 to reveal the answer and full explanation for question #273. The question stem and answer options stay visible for context.
Question
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 System.Web.UI.WebControls.TextBox txtBoxTermSetToAdd = new System.Web.UI. WebControls.TextBox(); 02 TaxonomySession session = new TaxonomySession(SPContext.Current.Site); 03 TermSet addedTerm = session.TermStores[0].Groups["MyNewTermStore"]. CreateTermSet(txtBoxTermSetToAdd.Text); 04 Which code segment should you add at line 04?
Options
- AaddedTerm.Export();
- BaddedTerm.TermStore.CommitAll();
- CSPContext.Current.Site.WebApplication.Update();
- DSPContext.Current.Web.AllowUnsafeUpdates = true;
Unlock 70-573 to see the answer
You've previewed enough free 70-573 questions. Unlock 70-573 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.