Microsoft
70-573 · Question #153
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 SharePoint Sites
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 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?
Options
- AThmxTheme.SetThemeUrlForWeb(web, "/_catalogs/theme/MyTheme.thmx",
- Bweb.AlternateCssUrl = "/_themes/MyTheme"
- Cweb.ApplyWebTemplate("MyTheme.thmx")
- Dweb.ThemedCssFolderUrl = "/_themes/MyTheme"
How the community answered
(27 responses)- A85% (23)
- B4% (1)
- C4% (1)
- D7% (2)
Explanation
MNEMONIC RULE: ThmxTheme ThmxTheme.SetThemeUrlForWeb Method (SPWeb, String, Boolean)
Topics
#themes#ThmxTheme#SPWeb#site customization
Community Discussion
No community discussion yet for this question.