Share via


SPTenantAdmin.GetEffectiveCompatibilityRange method

Returns the effective compatibility range applicable for the tenancy.

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

Syntax

'Declaration
Public Shared Function GetEffectiveCompatibilityRange ( _
    webapp As SPWebApplication, _
    siteSubscription As SPSiteSubscription _
) As SPCompatibilityRange
'Usage
Dim webapp As SPWebApplication
Dim siteSubscription As SPSiteSubscription
Dim returnValue As SPCompatibilityRange

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

Parameters

Return value

Type: Microsoft.SharePoint.SPCompatibilityRange
The effective compatibility range. If the administration property settings are not set, the administration range is set using the web app instead. If the tenant preferred range is set, it is used to further restrict the administration range. If the tenant preferred range is not set, the effective compatibility range is set to the web app’s administration range.

See also

Reference

SPTenantAdmin class

SPTenantAdmin members

Microsoft.SharePoint namespace