SPSite site = new SPSite(““http://dhraepoint);
SPWeb web = site.OpenWeb(“/subsite/site”);
web.AllProperties[“__InheritsCustomMasterUrl”] = “False”;
web.Update();

 

inclusief propertybag intherit custom masterpage vinkje