PublishingWeb.GetAvailableCrossLanguageWebTemplates method

Returns the cross-language Web templates available for creating subsites below this PublishingWeb.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Function GetAvailableCrossLanguageWebTemplates As SPWebTemplateCollection
'Usage
Dim instance As PublishingWeb
Dim returnValue As SPWebTemplateCollection

returnValue = instance.GetAvailableCrossLanguageWebTemplates()
public SPWebTemplateCollection GetAvailableCrossLanguageWebTemplates()

Return value

Type: Microsoft.SharePoint.SPWebTemplateCollection
An SPWebTemplateCollection collection of SPWebTemplate objects available for creating subsites below this PublishingWeb, regardless of language.

Remarks

The available Web templates returned by this method may be inherited from a parent PublishingWeb as indicated by the IsInheritingAvailableWebTemplates property.

Use the methods SetAvailableCrossLanguageWebTemplates(), AllowAllWebTemplates(), and InheritAvailableWebTemplates to modify the set of Web templates returned by this method.

See also

Reference

PublishingWeb class

PublishingWeb members

Microsoft.SharePoint.Publishing namespace

IsAllowingAllWebTemplates

GetAvailableWebTemplates

AllowAllWebTemplates

InheritAvailableWebTemplates

SetAvailableWebTemplates

SetAvailableCrossLanguageWebTemplates