Inheritable String Property
InheritableStringProperty is a class available in Sharepoint 2007 Publishing Web. It extends from InheritableProperty<T> - but I think we need InheritableProperty in C#
using (SPSite site1 = new SPSite("http://home.kir:2306/"))
{
PublishingWeb currentPublishingWeb = PublishingWeb.GetPublishingWeb(site.RootWeb);
if (currentPublishingWeb != null)
{
InheritableStringProperty customMasterUrlProperty = currentPublishingWeb.CustomMasterUrl;
customMasterUrlProperty.SetValue("/_catalogs/masterpage/new.master", true);
}
}