Site.GetWebTemplates method

Returns the collection of site definitions that are available for creating websites within the site collection.

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

Syntax

'Declaration
Public Function GetWebTemplates ( _
    LCID As UInteger, _
    overrideCompatLevel As Integer _
) As WebTemplateCollection
'Usage
Dim instance As Site
Dim LCID As UInteger
Dim overrideCompatLevel As Integer
Dim returnValue As WebTemplateCollection

returnValue = instance.GetWebTemplates(LCID, _
    overrideCompatLevel)
public WebTemplateCollection GetWebTemplates(
    uint LCID,
    int overrideCompatLevel
)

Parameters

  • LCID
    Type: System.UInt32

    A 32-bit unsigned integer that specifies the language of the site definitions that are returned from the site collection.

  • overrideCompatLevel
    Type: System.Int32

    Specifies the compatibility level of the site to return from the site collection. If this value is 0, the compatibility level of the site is used.

Return value

Type: Microsoft.SharePoint.Client.WebTemplateCollection
A WebTemplateCollection object that represents the site definitions.

Remarks

The method provided here mainly for the case when creating new Site compatibility mode.

See also

Reference

Site class

Site members

Microsoft.SharePoint.Client namespace