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
serviceContext
Type: Microsoft.SharePoint.SPServiceContextThe service context.
Return value
Type: Microsoft.SharePoint.SPAppPrincipal
The app principal.