Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Grants the Web app access to the Web using the specified SPAppPrincipal object and SPAppPrincipalPermissionKind object.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub AddAppPrincipalToWeb ( _
appPrincipal As SPAppPrincipal, _
permission As SPAppPrincipalPermissionKind _
)
'Usage
Dim instance As SPAppPrincipalPermissionsManager
Dim appPrincipal As SPAppPrincipal
Dim permission As SPAppPrincipalPermissionKind
instance.AddAppPrincipalToWeb(appPrincipal, _
permission)
public void AddAppPrincipalToWeb(
SPAppPrincipal appPrincipal,
SPAppPrincipalPermissionKind permission
)
Parameters
appPrincipal
Type: Microsoft.SharePoint.SPAppPrincipalThe app principal.
permission
Type: Microsoft.SharePoint.SPAppPrincipalPermissionKindThe permission to be granted to the app principal, as defined by SPAppPrincipalPermissionKind.
See also
Reference
SPAppPrincipalPermissionsManager class