SPWebTemplate.CompatibilityLevel property

SharePoint 2013

Gets the compatibility level for the web template.

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

Public Overridable ReadOnly Property CompatibilityLevel As Integer
Dim instance As SPWebTemplate
Dim value As Integer

value = instance.CompatibilityLevel

Property value

Type: System.Int32
A System.Int32 representation of the product version. 14 for SharePoint 2010 or previous version to that; otherwise major product version.

For built-in templates, the value is the major product version. For feature templates, the value is the UIVersion attribute from the onet.xml file.