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)- A79% (22)
- B4% (1)
- C11% (3)
- D7% (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.