SPWebTemplate.CompatibilityLevel property

Gets the compatibility level for the web template.

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

Syntax

'Declaration
Public Overridable ReadOnly Property CompatibilityLevel As Integer
    Get
'Usage
Dim instance As SPWebTemplate
Dim value As Integer

value = instance.CompatibilityLevel
public virtual int CompatibilityLevel { get; }

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.

Remarks

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.

See also

Reference

SPWebTemplate class

SPWebTemplate members

Microsoft.SharePoint namespace