PublishingWeb.SetAvailableCrossLanguageWebTemplates Method
Specifies the cross-language Web templates that are available for creating subsites below this PublishingWeb object.
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
public void SetAvailableCrossLanguageWebTemplates( Collection<SPWebTemplate> webTemplates, bool resetAllSubsitesToInherit )
Parameters
- webTemplates
- Type: System.Collections.ObjectModel.Collection<SPWebTemplate>
A collection of SPWebTemplate objects.
- 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 GetAvailableCrossLanguageWebTemplates method returns this set of Web templates. The IsInheritingAvailableWebTemplates and IsAllowingAllWebTemplates properties are false. The GetAvailableWebTemplates(UInt32, LCID) method includes this set of Web templates if they are available for the specified LCID.
To save changes after calling this method, call the Update method.