Share via


AppPrincipalName.CreateFromAppPrincipalIdentifier method

Create an instance of AppPrincipalName for the specified app principal identifier.

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

Syntax

'Declaration
Public Shared Function CreateFromAppPrincipalIdentifier ( _
    context As ClientRuntimeContext, _
    appPrincipalIdentifier As String _
) As AppPrincipalName
'Usage
Dim context As ClientRuntimeContext
Dim appPrincipalIdentifier As String
Dim returnValue As AppPrincipalName

returnValue = AppPrincipalName.CreateFromAppPrincipalIdentifier(context, _
    appPrincipalIdentifier)
public static AppPrincipalName CreateFromAppPrincipalIdentifier(
    ClientRuntimeContext context,
    string appPrincipalIdentifier
)

Parameters

  • appPrincipalIdentifier
    Type: System.String

    The app principal identifier of the desired app principal.

Return value

Type: Microsoft.SharePoint.Client.AppPrincipalName
An instance of AppPrincipalName that encapsulates the specified app principal identifier.

See also

Reference

AppPrincipalName class

AppPrincipalName members

Microsoft.SharePoint.Client namespace