命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Overrides Function ToString As String
用法
Dim instance As SPWebTemplate
Dim returnValue As String
returnValue = instance.ToString()
public override string ToString()
返回值
类型:System.String
区域性固定String描述模板或配置。
备注
返回的字符串的语法如下所示。
Title -%LCID%nnnn -%GTID%_GLOBAL_ #i -%TMPLID%Name
Description
Title是Title属性的值。
nnnn是Lcid属性的值。
i时 SPWebTemplate 表示网站定义配置的Template元素中WebTemp*.xmlID属性的值。如果它表示 Web 模板,则I是.wsp 文件,用于存储 Web 模板中包含的elements.xml文件中WebTemplate元素中的BaseTemplateID元素的值。
Name是Name属性的值。
Description是Description属性的值。
备注
没有回车符和正前方Description缩进。
示例如下:
Team Site - %LCID%1033 - %GTID%_GLOBAL_#1 - %TMPLID%STS#0
A site for teams to quickly organize, author, and share information. It provides a document library, and lists for managing announcements, calendar items, tasks, and discussions.
Personal Site - %LCID%1033 - %GTID%_GLOBAL_#1 - %TMPLID%PersonalSite.stp
A template for personal sites.
Hobby Site - %LCID%1033 - %GTID%_GLOBAL_#10001 - %TMPLID%HobbySiteType#0
A template for creating sites discussing a hobby.