Share via


SPAppRequestContext.InitCurrent method

Initializes the app request context with specified app principal identifier.

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

Syntax

'Declaration
Public Shared Function InitCurrent ( _
    appPrincipalIdentifier As String _
) As SPAppRequestContext
'Usage
Dim appPrincipalIdentifier As String
Dim returnValue As SPAppRequestContext

returnValue = SPAppRequestContext.InitCurrent(appPrincipalIdentifier)
public static SPAppRequestContext InitCurrent(
    string appPrincipalIdentifier
)

Parameters

  • appPrincipalIdentifier
    Type: System.String

    The app principal identifier. It's the encoded claim value.

Return value

Type: Microsoft.SharePoint.SPAppRequestContext
The app request context.

See also

Reference

SPAppRequestContext class

SPAppRequestContext members

Microsoft.SharePoint namespace