SPSite.HasAppPrincipalContext property

Whether this [SPSite] object is running within an app principal context. When the [SPSite] object is running within an app principal context, the request permission may be restricted by the app principal's permission, even if the [SPSite] object is created with System account.

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

Syntax

'Declaration
Public ReadOnly Property HasAppPrincipalContext As Boolean
    Get
'Usage
Dim instance As SPSite
Dim value As Boolean

value = instance.HasAppPrincipalContext
public bool HasAppPrincipalContext { get; }

Property value

Type: System.Boolean

See also

Reference

SPSite class

SPSite members

Microsoft.SharePoint namespace