PrepAway - Latest Free Exam Questions & Answers

Which code segment should you add to the console application?

You have a custom theme named MyTheme. The theme is defined in a file named

MyTheme.thmx. You have a console application that contains the following code segment. (Line
numbers are included for reference only.) 01 Using site As New SPSite(“http://intranet”) 02 Dim
web As SPWeb = site.OpenWeb() 03 … 04 End Using You need to programmatically apply the
theme to a SharePoint site. Which code segment should you add to the console application?

PrepAway - Latest Free Exam Questions & Answers

A.
web.ThemedCssFolderUrl = “/_themes/MyTheme”

B.
ThmxTheme.SetThemeUrlForWeb(web, “/_catalogs/theme/MyTheme.thmx”, False)

C.
web.AlternateCssUrl = “/_themes/MyTheme”

D.
web.ApplyWebTemplate(“MyTheme.thmx”)


Leave a Reply