共用方式為


SPWebTemplate.CompatibilityLevel property

取得網站範本中的相容性層級。

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

Syntax

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

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

Property value

Type: System.Int32
System.Int32的表示產品版本。SharePoint 2010或到那個 ; 前一版本的 14否則主要產品版本。

備註

內建的範本,值會是主要的產品版本。功能的範本,則值為UIVersion屬性,從 onet.xml 檔案。

請參閱

參照

SPWebTemplate class

SPWebTemplate members

Microsoft.SharePoint namespace