Share via


SPPersistedCustomWebTemplate.TemplateId property

Gets the ID of the custom Web template.

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

Syntax

'Declaration
Public ReadOnly Property TemplateId As Integer
    Get
'Usage
Dim instance As SPPersistedCustomWebTemplate
Dim value As Integer

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

Property value

Type: System.Int32
A 32-bit integer that indicates the Web template ID.

Remarks

The Web template ID is not a unique identifier; instead it connects the template to a particular Onet.xml file.

See also

Reference

SPPersistedCustomWebTemplate class

SPPersistedCustomWebTemplate members

Microsoft.SharePoint.Administration namespace