SPAppPermissionProvider.CheckUsageRightForCurrentUser method
Gets the display names of the capabilities the permission request scope depends on but user is not licensed to use.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Protected Overridable Function CheckUsageRightForCurrentUser ( _
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.CheckUsageRightForCurrentUser(permissionRequestScope, _
hostWeb)
protected virtual IEnumerable<string> CheckUsageRightForCurrentUser(
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.