共用方式為


SPTenantAdmin.SetPreferredCompatibilityRange method (SPWebApplication, SPSiteSubscription, SPCompatibilityRange)

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

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

Syntax

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

參數

備註

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

請參閱

參照

SPTenantAdmin class

SPTenantAdmin members

SetPreferredCompatibilityRange overload

Microsoft.SharePoint namespace