SPTenantAdmin.GetPreferredCompatibilityRange method

Explicitly returns the tenant preferred compatibility range applicable for the tenancy.

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

Syntax

'Declaration
Public Shared Function GetPreferredCompatibilityRange ( _
    webapp As SPWebApplication, _
    siteSubscription As SPSiteSubscription _
) As SPCompatibilityRange
'Usage
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
)

Parameters

Return value

Type: Microsoft.SharePoint.SPCompatibilityRange
The tenant preferred compatibility range. This method will return null if the tenant has not set a preference. The return value might also be out of valid range.

See also

Reference

SPTenantAdmin class

SPTenantAdmin members

Microsoft.SharePoint namespace