Share via


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.Uri

    The permission request scope.

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.

See also

Reference

SPAppPermissionProvider class

SPAppPermissionProvider members

Microsoft.SharePoint.Administration namespace