SPWebTemplate.CompatibilityLevel property
SharePoint 2013
Gets the compatibility level for the web template.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Property value
Type: System.Int32A System.Int32 representation of the product version. 14 for SharePoint 2010 or previous version to that; otherwise major product version.