SPCapabilityChecker.CheckUsageRightForCurrentTenant method
Checks the tenant license and returns the display names of the services or features for which the current tenant does not have a license. If the current tenant has the license to use all services or features of this capability, an empty list is returned.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overridable Function CheckUsageRightForCurrentTenant ( _
hostWeb As SPWeb _
) As IEnumerable(Of String)
'Usage
Dim instance As SPCapabilityChecker
Dim hostWeb As SPWeb
Dim returnValue As IEnumerable(Of String)
returnValue = instance.CheckUsageRightForCurrentTenant(hostWeb)
public virtual IEnumerable<string> CheckUsageRightForCurrentTenant(
SPWeb hostWeb
)
Parameters
hostWeb
Type: Microsoft.SharePoint.SPWebThe web where the app is to be installed.
Return value
Type: System.Collections.Generic.IEnumerable<String>
The display names of capabilities for which the current tenant does not have a license.