SPTenantAdmin.GetAdminCompatibilityRange method
傳回 tenancy 適用管理相容性範圍。此方法需要伺服陣列管理存取權。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function GetAdminCompatibilityRange ( _
webapp As SPWebApplication, _
siteSubscription As SPSiteSubscription _
) As SPCompatibilityRange
'用途
Dim webapp As SPWebApplication
Dim siteSubscription As SPSiteSubscription
Dim returnValue As SPCompatibilityRange
returnValue = SPTenantAdmin.GetAdminCompatibilityRange(webapp, _
siteSubscription)
public static SPCompatibilityRange GetAdminCompatibilityRange(
SPWebApplication webapp,
SPSiteSubscription siteSubscription
)
參數
webapp
Type: Microsoft.SharePoint.Administration.SPWebApplication安裝在伺服器陣列上的 web 應用程式。
siteSubscription
Type: Microsoft.SharePoint.SPSiteSubscription房客的站台訂閱。
傳回值
Type: Microsoft.SharePoint.SPCompatibilityRange
管理相容性的範圍。如果未設定管理相容性範圍,這個方法傳回的 web 應用程式相容性範圍改為 (不會傳回a null reference (Nothing in Visual Basic))。