Share via


SPAppRequestContext.GetAppPrincipal method

Gets the app principal associated with the app request context.

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

Syntax

'Declaration
Public Function GetAppPrincipal ( _
    serviceContext As SPServiceContext _
) As SPAppPrincipal
'Usage
Dim instance As SPAppRequestContext
Dim serviceContext As SPServiceContext
Dim returnValue As SPAppPrincipal

returnValue = instance.GetAppPrincipal(serviceContext)
public SPAppPrincipal GetAppPrincipal(
    SPServiceContext serviceContext
)

Parameters

Return value

Type: Microsoft.SharePoint.SPAppPrincipal
The app principal.

See also

Reference

SPAppRequestContext class

SPAppRequestContext members

Microsoft.SharePoint namespace