nerdexam
Microsoft

70-573 · Question #274

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

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)

Developing for Data Access

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"];

How the community answered

(28 responses)
  • A
    79% (22)
  • B
    4% (1)
  • C
    11% (3)
  • D
    7% (2)

Explanation

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

Topics

#TaxonomySession#social tags#term store#SharePoint API

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice