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.) 101 using ( SPSite sice = new SPSite ( “http://intranet”
}} 02 { 03 SPWeb web – site.OpenWeb (); 01 05 } You need to programmatically apply the theme
to a SharePoint site. Which code segment should you add to the console application?
A.
web.ThemedCssFolderUrl = “/_themes/MyTheme”;
B.
web.ApplyWebTemplate(“MyTheme.thmx”);
C.
ThmxTheme.SetThemeUrlForWeb(web, “/_catalogs/theme/MyTheme.thmx”, False);
D.
web.AlternateCssUrl = “/_themes/MyTheme”;
Explanation: