SPUtility.ContextCompatibilityLevel property

SharePoint 2013

Getsthe compatibility level of the context site.

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

public static int ContextCompatibilityLevel { get; }

Property value

Type: System.Int32
The value representing the compatibility level of the context site.

If no context site, return the Major Build Version of the current product.

Show: