共用方式為


SPPersistedCustomWebTemplate.TemplateId property

取得自訂網站範本的識別碼。

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

Syntax

'宣告
Public ReadOnly Property TemplateId As Integer
    Get
'用途
Dim instance As SPPersistedCustomWebTemplate
Dim value As Integer

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

Property value

Type: System.Int32
32 位元整數,指出網站範本識別碼。

備註

網站範本識別碼不是唯一的識別碼 ;而是連線至特定Onet.xml檔案範本。

請參閱

參照

SPPersistedCustomWebTemplate class

SPPersistedCustomWebTemplate members

Microsoft.SharePoint.Administration namespace