SPSite.GetWebTemplates method (UInt32, Int32)
Returns the collection of site definitions that are available for creating Web sites within the site collection.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function GetWebTemplates ( _
LCID As UInteger, _
overrideCompatLevel As Integer _
) As SPWebTemplateCollection
'Usage
Dim instance As SPSite
Dim LCID As UInteger
Dim overrideCompatLevel As Integer
Dim returnValue As SPWebTemplateCollection
returnValue = instance.GetWebTemplates(LCID, _
overrideCompatLevel)
public SPWebTemplateCollection GetWebTemplates(
uint LCID,
int overrideCompatLevel
)
Parameters
- LCID
Type: System.UInt32
- overrideCompatLevel
Type: System.Int32
Return value
Type: Microsoft.SharePoint.SPWebTemplateCollection
An SPWebTemplateCollection object that represents the site definitions.
Remarks
The method provided here mainly for the case when creating new spsite in compatibility mode, e.g. 14 in a 15 farm, where Admin Site's compatibility level is by default used