SPAppPrincipalPermissionsManager.RemoveAppPrincipalPermissionFromWeb method
Removes the app's permission from the web.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub RemoveAppPrincipalPermissionFromWeb ( _
appPrincipal As SPAppPrincipal, _
removePermissionFromSubtree As Boolean _
)
'Usage
Dim instance As SPAppPrincipalPermissionsManager
Dim appPrincipal As SPAppPrincipal
Dim removePermissionFromSubtree As Boolean
instance.RemoveAppPrincipalPermissionFromWeb(appPrincipal, _
removePermissionFromSubtree)
public void RemoveAppPrincipalPermissionFromWeb(
SPAppPrincipal appPrincipal,
bool removePermissionFromSubtree
)
Parameters
appPrincipal
Type: Microsoft.SharePoint.SPAppPrincipalThe app principal.
removePermissionFromSubtree
Type: System.BooleanIf this parameter is true, the app's permission on the list will also be removed. If this parameter is false, only the app's explicit permission on the web will be removed.
See also
Reference
SPAppPrincipalPermissionsManager class