SPWeb.SetAvailableWebTemplates Method

Specifies the Web templates that are available for creating subsites below the website for the specified locale.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.CollectionOfSPTypesParameter)> _
Public Sub SetAvailableWebTemplates ( _
    webTemplates As Collection(Of SPWebTemplate), _
    lcid As UInteger _
)
'Usage
Dim instance As SPWeb
Dim webTemplates As Collection(Of SPWebTemplate)
Dim lcid As UInteger

instance.SetAvailableWebTemplates(webTemplates, _
    lcid)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.CollectionOfSPTypesParameter)]
public void SetAvailableWebTemplates(
    Collection<SPWebTemplate> webTemplates,
    uint lcid
)

Parameters

  • lcid
    Type: System.UInt32

    An unsigned 32-bit integer that specifies the locale ID.

See Also

Reference

SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace