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)


Public ReadOnly Property HasAppPrincipalContext As Boolean
Dim instance As SPSite
Dim value As Boolean

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

Property value

Type: System.Boolean

See also


SPSite class

SPSite members

Microsoft.SharePoint namespace