Returns the collection of site definitions that are available for creating Web sites within the site collection.
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Function GetWebTemplates ( _
LCID As UInteger, _
overrideCompatLevel As Integer _
) As SPWebTemplateCollection
用法
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
)
参数
- LCID
类型:System.UInt32
- overrideCompatLevel
类型:System.Int32
返回值
类型: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