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?

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

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 0

Your email address will not be published. Required fields are marked *