Share via


SPAppPrincipalPermissionsManager.RemoveAppPrincipalPermissionFromSite method

Removes the app's permission on the site collection.

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

Syntax

'Declaration
Public Sub RemoveAppPrincipalPermissionFromSite ( _
    appPrincipal As SPAppPrincipal, _
    removePermissionsFromSubtree As Boolean _
)
'Usage
Dim instance As SPAppPrincipalPermissionsManager
Dim appPrincipal As SPAppPrincipal
Dim removePermissionsFromSubtree As Boolean

instance.RemoveAppPrincipalPermissionFromSite(appPrincipal, _
    removePermissionsFromSubtree)
public void RemoveAppPrincipalPermissionFromSite(
    SPAppPrincipal appPrincipal,
    bool removePermissionsFromSubtree
)

Parameters

  • removePermissionsFromSubtree
    Type: System.Boolean

    If this parameter is true, the app's permission on the whole site collection will be removed. If this parameter is false, only the app’s explicit permission will be removed on the site collection.

See also

Reference

SPAppPrincipalPermissionsManager class

SPAppPrincipalPermissionsManager members

Microsoft.SharePoint namespace