PrepAway - Latest Free Exam Questions & Answers

Which code segment should you use?

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

PrepAway - Latest Free Exam Questions & Answers

A.
Dim socialTags As TermSet = DirectCast (SPContext.Current.Web.AllProperties(“Keywords”),
TermSet)

B.
Dim session As New TaxonomySession(SPContext.Current.Site) Dim socialTags As TermSet
= session.DefaultKeywordsTermStore.SystemGroup.TermSets(“Keywords”)

C.
Dim session As New TaxonomySession(SPContext.Current.Site) Dim socialTags As TermSet
= session.DefaultKeywordsTermStore.SystemGroup.TermSets(“Tags”)

D.
Dim socialTags As TermSet = DirectCast
(SPContext.Current.Site.WebApplication.Properties(“Tags”), TermSet)

Explanation:


Leave a Reply