SPSite.GetWebTemplates 方法 (UInt32, Int32)

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
)

参数

返回值

类型: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

另请参阅

引用

SPSite 类

SPSite 成员

GetWebTemplates 重载

Microsoft.SharePoint 命名空间