SPAppRequestContext.GetTenantPermissionInfo method

Gets the app's tenant-scoped permission for a particular permission provider.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function GetTenantPermissionInfo ( _
    serviceContext As SPServiceContext, _
    permissionProviderId As Guid _
) As SPAppPrincipalTenantPermissionInfo
'Usage
Dim instance As SPAppRequestContext
Dim serviceContext As SPServiceContext
Dim permissionProviderId As Guid
Dim returnValue As SPAppPrincipalTenantPermissionInfo

returnValue = instance.GetTenantPermissionInfo(serviceContext, _
    permissionProviderId)
public SPAppPrincipalTenantPermissionInfo GetTenantPermissionInfo(
    SPServiceContext serviceContext,
    Guid permissionProviderId
)

Parameters

  • permissionProviderId
    Type: System.Guid

    The identifier of the permission provider.

Return value

Type: Microsoft.SharePoint.AppManagement.SPAppPrincipalTenantPermissionInfo
The tenant-scoped permission information. The return value will be a null reference (Nothing in Visual Basic) if there is no tenant-scoped permission for the specified permission provider.

See also

Reference

SPAppRequestContext class

SPAppRequestContext members

Microsoft.SharePoint namespace