Share via


SPAppPrincipalPermissionsManager.IsAppOnlyPolicyAllowed method

Indicates whether the app-only policy is allowed on the specified app principal.

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

Syntax

'Declaration
Public Function IsAppOnlyPolicyAllowed ( _
    appPrincipal As SPAppPrincipal _
) As Boolean
'Usage
Dim instance As SPAppPrincipalPermissionsManager
Dim appPrincipal As SPAppPrincipal
Dim returnValue As Boolean

returnValue = instance.IsAppOnlyPolicyAllowed(appPrincipal)
public bool IsAppOnlyPolicyAllowed(
    SPAppPrincipal appPrincipal
)

Parameters

Return value

Type: System.Boolean
true if the app-only policy is allowed, otherwise false.

See also

Reference

SPAppPrincipalPermissionsManager class

SPAppPrincipalPermissionsManager members

Microsoft.SharePoint namespace