次の方法で共有


SPUtility.ContextCompatibilityLevel property

Getsthe compatibility level of the context site.

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

Syntax

'Declaration
Public Shared ReadOnly Property ContextCompatibilityLevel As Integer
    Get
'Usage
Dim value As Integer

value = SPUtility.ContextCompatibilityLevel
public static int ContextCompatibilityLevel { get; }

Property value

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

Remarks

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

See also

Reference

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace