SPWeb.MasterPageReferenceEnabled property
SharePoint 2013
Retrieves a Boolean value that indicates whether the website is enabled for master page referencing.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Property value
Type: System.BooleanA Boolean that specifies the master page reference enabled property.