Export (0) Print
Expand All

SPSite.GetWebTemplates method (UInt32, Int32)

SharePoint 2013

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)

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.

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

Show:
© 2014 Microsoft