SPWeb.GetSiteAppPrincipals method

Get the app principals in the site collection.

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

Syntax

'Declaration
Public Function GetSiteAppPrincipals As IEnumerable(Of SPSiteAppPrincipalInfo)
'Usage
Dim instance As SPWeb
Dim returnValue As IEnumerable(Of SPSiteAppPrincipalInfo)

returnValue = instance.GetSiteAppPrincipals()
public IEnumerable<SPSiteAppPrincipalInfo> GetSiteAppPrincipals()

Return value

Type: System.Collections.Generic.IEnumerable<SPSiteAppPrincipalInfo>
All app principals in the site collection. Those app principals are the ones either have been explicitly granted permissions or the ones have visited the site collection.

Remarks

It's an expensive operation.

See also

Reference

SPWeb class

SPWeb members

Microsoft.SharePoint namespace