SPAppPermissionProvider.GetMissingServiceDependencyNames method
Gets the services the permission request scope depends on but are not available to the user.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Protected Overridable Function GetMissingServiceDependencyNames ( _
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.GetMissingServiceDependencyNames(permissionRequestScope, _
hostWeb)
protected virtual IEnumerable<string> GetMissingServiceDependencyNames(
Uri permissionRequestScope,
SPWeb hostWeb
)
Parameters
permissionRequestScope
Type: System.UriThe permission request scope.
hostWeb
Type: Microsoft.SharePoint.SPWebThe website that the SharePoint app is to be installed on.
Return value
Type: System.Collections.Generic.IEnumerable<String>
The display names of the missing services.
Remarks
If there is no missing service dependency, this method should return an empty enumerable. This method should not return the service that user is not licensed to.