Microsoft
70-573 · Question #12
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…
The correct answer is A. ThmxTheme.SetThemeUrlForWeb(web, "/_catalogs/theme/MyTheme.thmx". MNEMONIC RULE: ThmxTheme ThmxTheme.SetThemeUrlForWeb Method (SPWeb, String, Boolean)
Developing for User Experience
Question
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.) 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?
Options
- AThmxTheme.SetThemeUrlForWeb(web, "/_catalogs/theme/MyTheme.thmx",
- Bweb.AlternateCssUrl = "/_themes/MyTheme";
- Cweb.ApplyWebTemplate("MyTheme.thmx");
- Dweb.ThemedCssFolderUrl = "/_themes/MyTheme";
How the community answered
(26 responses)- A77% (20)
- B4% (1)
- C12% (3)
- D8% (2)
Explanation
MNEMONIC RULE: ThmxTheme ThmxTheme.SetThemeUrlForWeb Method (SPWeb, String, Boolean)
Topics
#theme application#ThmxTheme#site theming#SPWeb
Community Discussion
No community discussion yet for this question.