nerdexam
Microsoft

70-573 · Question #274

70-573 Question #274: Real Exam Question with Answer & Explanation

The correct answer is A. TaxonomySession session = new TaxonomySession(SPContext.Current.Site);. MNEMONIC RULE: "TaxonomySession, TermSets["Keywords"]" TermSetCollection Members us/library/microsoft.sharepoint.taxonomy.termsetcollection_members.aspx IndexedCollection<T>.Item Property (String)

Question

You need to create a Web Part that displays all social tags entered by users. Which code segment should you use?

Options

  • ATaxonomySession session = new TaxonomySession(SPContext.Current.Site);
  • BTaxonomySession session = new TaxonomySession(SPContext.Current.Site);
  • CTermSet socialTags = (TermSet)SPContext.Current.Site.WebApplication.Properties
  • DTermSet socialTags = (TermSet)SPContext.Current.Web.AllProperties["Keywords"];

Explanation

MNEMONIC RULE: "TaxonomySession, TermSets["Keywords"]" TermSetCollection Members us/library/microsoft.sharepoint.taxonomy.termsetcollection_members.aspx IndexedCollection<T>.Item Property (String)

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice