共用方式為


SPWebTemplate.Description property

取得描述站台定義設定] 或 [網站範本

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public ReadOnly Property Description As String
    Get
'用途
Dim instance As SPWebTemplate
Dim value As String

value = instance.Description
public string Description { get; }

Property value

Type: System.String
String 包含描述。

備註

如果SPWebTemplate代表站台定義組態,這個屬性會對應至組態檔中的元素WebTemp*.xml的Description屬性。(請參閱Understanding Web*Temp.xml Files如需詳細資訊)。

如果SPWebTemplate代表網站範本,此屬性對應於 WebTemplate 中的項目包含.wsp 檔案來儲存網站範本中的elements.xml檔案的Description屬性。

請參閱

參照

SPWebTemplate class

SPWebTemplate members

Microsoft.SharePoint namespace

其他資源

WebTemp.xml

共同作業應用程式標記語言 (連同 CAML)

Custom Site Templates

Site Definitions and Configurations