Site.GetWebTemplates 方法
Returns the collection of site definitions that are available for creating websites within the site collection.
命名空间: Microsoft.SharePoint.Client
程序集: Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中); Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中) Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)
语法
声明
Public Function GetWebTemplates ( _
LCID As UInteger, _
overrideCompatLevel As Integer _
) As WebTemplateCollection
用法
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
)
参数
LCID
类型:System.UInt32A 32-bit unsigned integer that specifies the language of the site definitions that are returned from the site collection.
overrideCompatLevel
类型:System.Int32Specifies 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.
返回值
类型:Microsoft.SharePoint.Client.WebTemplateCollection
A WebTemplateCollection object that represents the site definitions.
备注
The method provided here mainly for the case when creating new Site compatibility mode.