共用方式為


SPTenantAdmin.GetPreferredCompatibilityRange method

明確地傳回承租人慣用相容性範圍適用的 tenancy。

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

Syntax

'宣告
Public Shared Function GetPreferredCompatibilityRange ( _
    webapp As SPWebApplication, _
    siteSubscription As SPSiteSubscription _
) As SPCompatibilityRange
'用途
Dim webapp As SPWebApplication
Dim siteSubscription As SPSiteSubscription
Dim returnValue As SPCompatibilityRange

returnValue = SPTenantAdmin.GetPreferredCompatibilityRange(webapp, _
    siteSubscription)
public static SPCompatibilityRange GetPreferredCompatibilityRange(
    SPWebApplication webapp,
    SPSiteSubscription siteSubscription
)

參數

傳回值

Type: Microsoft.SharePoint.SPCompatibilityRange
慣用的房客相容性的範圍。這個方法會傳回 null 如果承租人沒有設定偏好設定。傳回值也可能超出有效範圍。

請參閱

參照

SPTenantAdmin class

SPTenantAdmin members

Microsoft.SharePoint namespace