共用方式為


SPAppPrincipalPermissionsManager.RemoveAppPrincipalPermissionFromWeb method

從網頁移除應用程式的使用權限。

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

Syntax

'宣告
Public Sub RemoveAppPrincipalPermissionFromWeb ( _
    appPrincipal As SPAppPrincipal, _
    removePermissionFromSubtree As Boolean _
)
'用途
Dim instance As SPAppPrincipalPermissionsManager
Dim appPrincipal As SPAppPrincipal
Dim removePermissionFromSubtree As Boolean

instance.RemoveAppPrincipalPermissionFromWeb(appPrincipal, _
    removePermissionFromSubtree)
public void RemoveAppPrincipalPermissionFromWeb(
    SPAppPrincipal appPrincipal,
    bool removePermissionFromSubtree
)

參數

  • removePermissionFromSubtree
    Type: System.Boolean

    如果這個參數為true,也會移除清單上的應用程式的權限。如果這個參數為false,只有應用程式的明確權限在網頁上將被移除。

請參閱

參照

SPAppPrincipalPermissionsManager class

SPAppPrincipalPermissionsManager members

Microsoft.SharePoint namespace