SPWebTemplate.ToString method
傳回描述站台定義設定] 或 [網站範本 」的文化特性而異字串。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Overrides Function ToString As String
'用途
Dim instance As SPWebTemplate
Dim returnValue As String
returnValue = instance.ToString()
public override string ToString()
傳回值
Type: System.String
描述範本或設定文化特性而異String 。
備註
傳回字串的語法如下所示。
Title -%LCID%nnnn -%GTID%會顯示最後觀察 #i -%TMPLID%Name
Description
Title是Title屬性的值。
nnnn是Lcid屬性的值。
如果 SPWebTemplate 代表站台定義組態, i會是範本中的項目WebTemp*.xml的ID屬性的值。如果它表示網站範本, I是在WebTemplate中的項目.wsp 檔案來儲存網站範本中所包含的elements.xml檔案中的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.
請參閱
參照
Microsoft.SharePoint namespace