SPAppPrincipalPermissionsManager.RemoveAppPrincipalPermissionFromSite method
移除網站集合的應用程式的使用權限。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub RemoveAppPrincipalPermissionFromSite ( _
appPrincipal As SPAppPrincipal, _
removePermissionsFromSubtree As Boolean _
)
'用途
Dim instance As SPAppPrincipalPermissionsManager
Dim appPrincipal As SPAppPrincipal
Dim removePermissionsFromSubtree As Boolean
instance.RemoveAppPrincipalPermissionFromSite(appPrincipal, _
removePermissionsFromSubtree)
public void RemoveAppPrincipalPermissionFromSite(
SPAppPrincipal appPrincipal,
bool removePermissionsFromSubtree
)
參數
appPrincipal
Type: Microsoft.SharePoint.SPAppPrincipal應用程式主體中。
removePermissionsFromSubtree
Type: System.Boolean如果這個參數為true,在整個網站集合上的應用程式的權限將被移除。如果這個參數為false,只是應用程式的明確的權限將會移除網站集合。
請參閱
參照
SPAppPrincipalPermissionsManager class