SPWeb.WebTemplateId 属性
Gets the identifier (ID) of the site definition that was used to create the site.
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public ReadOnly Property WebTemplateId As Integer
Get
用法
Dim instance As SPWeb
Dim value As Integer
value = instance.WebTemplateId
public int WebTemplateId { get; }
属性值
类型:System.Int32
A 32-bit integer that specifies the ID. This value corresponds to the ID attribute of the Template element in Collaborative Application Markup Language (CAML).
备注
The range of possible values for the WebTemplateId property is described in the documentation for the SPWebTemplate.WebTemplate enumeration.
When you create a custom site template by saving a site as a template and then create a new site from the custom template, the WebTemplateId property contains the ID of the site definition from which the custom template is derived.