SPWebTemplate.ID Property

Gets the ID for the site definition configuration or site template.

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


Public ReadOnly Property ID As Integer

Dim instance As SPWebTemplate
Dim value As Integer

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

Property Value

Type: System.Int32
A Int32 that specifies the ID.


If the SPWebTemplate represents a site definition configuration, this property corresponds to the ID attribute of a <Template> element in a WebTemp*.xml file. (See WebTemp.xml for more information.)

If the SPWebTemplate represents a site template, this property corresponds to the <TemplateID> element the manifest.xml file contained in the .stp file that stores the site template. The value is the ID of the original site definition configuration which was the foundation of the site which served as the source of the site template.

See Also


SPWebTemplate Class

SPWebTemplate Members

Microsoft.SharePoint Namespace

Other Resources


Collaborative Application Markup Language (CAML)

Custom Site Templates

Site Definitions and Configurations