SPWeb.AllWebTemplatesAllowed property
SharePoint 2013
Gets a Boolean value that indicates whether the available Web templates that are returned by the GetAvailableWebTemplates method comprise the complete set of templates.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)