共用方式為


SPTenantAdmin.SetPreferredCompatibilityRange method (SPSiteSubscription, SPCompatibilityRange)

設定慣用的相容性範圍適用的 tenancy。

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

Syntax

'宣告
Public Shared Sub SetPreferredCompatibilityRange ( _
    siteSubscription As SPSiteSubscription, _
    compatibilityRange As SPCompatibilityRange _
)
'用途
Dim siteSubscription As SPSiteSubscription
Dim compatibilityRange As SPCompatibilityRangeSPTenantAdmin.SetPreferredCompatibilityRange(siteSubscription, _
    compatibilityRange)
public static void SetPreferredCompatibilityRange(
    SPSiteSubscription siteSubscription,
    SPCompatibilityRange compatibilityRange
)

參數

備註

只可以由伺服陣列管理員呼叫這個方法。

請參閱

參照

SPTenantAdmin class

SPTenantAdmin members

SetPreferredCompatibilityRange overload

Microsoft.SharePoint namespace