Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PublishingWeb.SetAvailableCrossLanguageWebTemplates method

Specifies the cross-language Web templates that are available for creating subsites below this PublishingWeb object.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
public void SetAvailableCrossLanguageWebTemplates(
	Collection<SPWebTemplate> webTemplates,
	bool resetAllSubsitesToInherit


Type: System.Collections.ObjectModel.Collection<SPWebTemplate>

A collection of SPWebTemplate objects.

Type: System.Boolean

This Boolean parameter indicates whether the available Web templates should be pushed down to all subsites.


The current user does not have sufficient permissions to perform this action.

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.