Thursday, March 13, 2008

Setting Site Theme Programmatically

SPSite site = new SPSite("");
SPWeb web = site.OpenWeb();
web.ApplyTheme("");

3 comments:

Josh Norris said...

Thanks... I like the quick answers.

komal said...

I am trying to apply sharepoint breeze theme with this code.But throwing an exception that "can't open the folder Breeze".

Anonymous said...

Hi komal, try to run with elevated privileges..

Reference Architecture: Building a Cost Optimized, High-Throughput HL7, EDI, and FHIR Processing Pipeline on OCI ( Published in Oracle Blog)

 OCI (Oracle Cloud Infrastructure) provides more than 200 services to build your next enterprise application. Explore the blog to learn how ...