SPWebTemplate.ID 属性

获取为网站定义配置Web 模板的 ID。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public ReadOnly Property ID As Integer
    Get
用法
Dim instance As SPWebTemplate
Dim value As Integer

value = instance.ID
public int ID { get; }

属性值

类型:System.Int32
Int32 指定 id。

备注

If the SPWebTemplate represents a site definition configuration, this property corresponds to the ID attribute of a Template element in a WebTemp*.xml file. (See WebTemp.xml for more information.)

如果SPWebTemplate代表 Web 模板,此属性对应于.wsp 文件,用于存储 Web 模板中包含elements.xml文件中的WebTemplate元素中的BaseTemplateID属性。值为原始网站定义配置已作为 Web 模板的源该站点的 foundation 的 ID。

另请参阅

引用

SPWebTemplate 类

SPWebTemplate 成员

Microsoft.SharePoint 命名空间

其他资源

WebTemp.xml

Collaborative Application Markup Language (CAML)

Custom Site Templates

Site Definitions and Configurations