SPWebTemplate.Name property
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public ReadOnly Property Name As String
Get
'用途
Dim instance As SPWebTemplate
Dim value As String
value = instance.Name
public string Name { get; }
Property value
Type: System.String
String ,表示名稱 ;例如,"STS #0"或者"MyCustomWebTemplate"。
備註
如果SPWebTemplate代表站台定義組態,這個屬性會是Name的屬性在WebTemp*.xml檔案中的範本項目和其中一個設定項目的子項目Template的ID屬性的串連。(請參閱WebTemp.xml如需詳細資訊)。沒有"#"字元之間的兩個部分 ;例如 「 MPS #1 」 或者 「 MyCustomSiteDefinition #0"。
如果SPWebTemplate代表網站範本,則這個屬性會傳回WebTemplate元素的Name屬性.wsp 檔案來儲存網站範本中所含的elements.xml檔案中。
請參閱
參照
Microsoft.SharePoint namespace