SPAppPermissionProvider.CheckUsageRightForCurrentTenant method
Gets the display names of the capabilities the permission request scope depends on but the tenant is not licensed to use.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Protected Overridable Function CheckUsageRightForCurrentTenant ( _
permissionRequestScope As Uri, _
hostWeb As SPWeb _
) As IEnumerable(Of String)
'Usage
Dim permissionRequestScope As Uri
Dim hostWeb As SPWeb
Dim returnValue As IEnumerable(Of String)
returnValue = Me.CheckUsageRightForCurrentTenant(permissionRequestScope, _
hostWeb)
protected virtual IEnumerable<string> CheckUsageRightForCurrentTenant(
Uri permissionRequestScope,
SPWeb hostWeb
)
Parameters
- permissionRequestScope
Type: System.Uri
- hostWeb
Type: Microsoft.SharePoint.SPWeb
Return value
Type: System.Collections.Generic.IEnumerable<String>
Remarks
If there is no unlicensed service dependency, the method should return an empty enumerable.