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
)
參數
appPrincipal
Type: Microsoft.SharePoint.SPAppPrincipal應用程式主體中。
removePermissionFromSubtree
Type: System.Boolean如果這個參數為true,也會移除清單上的應用程式的權限。如果這個參數為false,只有應用程式的明確權限在網頁上將被移除。
請參閱
參照
SPAppPrincipalPermissionsManager class