共用方式為


SPSite.CompatibilityLevel property

取得用於主要版本層級相容性檢查此網站集合的主要版本。

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

Syntax

'宣告
Public ReadOnly Property CompatibilityLevel As Integer
    Get
'用途
Dim instance As SPSite
Dim value As Integer

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

Property value

Type: System.Int32

請參閱

參照

SPSite class

SPSite members

Microsoft.SharePoint namespace