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)

Syntax

'Declaration
Public Sub AllowAllWebTemplates
'Usage
Dim instance As SPWeb

instance.AllowAllWebTemplates()
public void AllowAllWebTemplates()

Remarks

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.

See also

Reference

SPWeb class

SPWeb members

Microsoft.SharePoint namespace