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
context
Type: Microsoft.SharePoint.Client.ClientRuntimeContextThe runtime context.
nameIdentifier
Type: System.StringThe name identifier of the desired app principal.
Return value
Type: Microsoft.SharePoint.Client.AppPrincipalName
An instance of AppPrincipalName that encapsulates the specified name identifier