PublishingWeb.AllowAllWebTemplates method
SharePoint 2013
Resets the available Web templates on this PublishingWeb object to the complete set of Web templates.
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Parameters
- resetAllSubsitesToInherit
- Type: System.Boolean
This Boolean parameter indicates whether the available Web templates should be pushed down to all subsites.
After calling this method, the GetAvailableWebTemplates method returns the complete set of Web templates for a given language. The IsInheritingAvailableWebTemplates property is set to false. The IsAllowingAllWebTemplates property is set to True.
After calling this method, you should call the Update method to save changes.
Note
|
|---|
This operation is synchronous. |
Note