Share via


AppPrincipalName.CreateFromNameIdentifier method

Create an instance of AppPrincipalName for the specified name identifier.

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

Syntax

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

returnValue = AppPrincipalName.CreateFromNameIdentifier(context, _
    nameIdentifier)
public static AppPrincipalName CreateFromNameIdentifier(
    ClientRuntimeContext context,
    string nameIdentifier
)

Parameters

  • nameIdentifier
    Type: System.String

    The name identifier of the desired app principal.

Return value

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

See also

Reference

AppPrincipalName class

AppPrincipalName members

Microsoft.SharePoint.Client namespace