Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
AllowAllWebTemplates Method
Collapse the table of content
Expand the table of content

SPWeb.AllowAllWebTemplates Method

Resets the available web templates on the website to the complete set of web templates.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public void AllowAllWebTemplates()

The complete set of web templates is restricted by the language of the website. After calling this method, call the GetAvailableWebTemplates() method to get the complete set of web templates.

© 2015 Microsoft