Partilhar via


SPSite.GetCustomWebTemplates Method

Returns the collection of site templates for the site collection based on the specified locale ID (LCID).

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

Syntax

'Declaration
Public Function GetCustomWebTemplates ( _
    LCID As UInteger _
) As SPWebTemplateCollection
'Usage
Dim instance As SPSite
Dim LCID As UInteger
Dim returnValue As SPWebTemplateCollection

returnValue = instance.GetCustomWebTemplates(LCID)
public SPWebTemplateCollection GetCustomWebTemplates(
    uint LCID
)

Parameters

  • LCID
    Type: System.UInt32

    A 32-bit unsigned integer that specifies the LCID.

Return Value

Type: Microsoft.SharePoint.SPWebTemplateCollection
An SPWebTemplateCollection object that represents the site templates.

See Also

Reference

SPSite Class

SPSite Members

Microsoft.SharePoint Namespace